blob: eb9db07e0bfc27057f24f6227c0f96d34db0bbf5 [file] [log] [blame]
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef COBALT_SSO_SSO_INTERFACE_H_
#define COBALT_SSO_SSO_INTERFACE_H_
#include <string>
#include "base/memory/scoped_ptr.h"
namespace cobalt {
namespace sso {
// Porters should inherit from this class, and implement the pure
// virtual functions.
class SsoInterface {
public:
virtual ~SsoInterface() {}
virtual std::string getApiKey() const = 0;
virtual std::string getOauthClientId() const = 0;
virtual std::string getOauthClientSecret() const = 0;
};
// Porters should implement this function in the |starboard|
// directory, and link the definition inside cobalt.
scoped_ptr<SsoInterface> CreateSSO();
} // namespace sso
} // namespace cobalt
#endif // COBALT_SSO_SSO_INTERFACE_H_