def test_client_id(self): o = config.OIDCConfig() o.OIDC_DOMAIN = 'foo.bar.com' o.OIDC_CLIENT_SECRET = 'abc123' assert o.client_secret == 'abc123' assert o is not None
def test_token_endpoint_method(self): o = config.OIDCConfig() o.OIDC_DOMAIN = 'foo.bar.com' assert o.token_endpoint() == 'https://foo.bar.com/oauth/token' assert o is not None
def test_user_endpoint_method(self): o = config.OIDCConfig() o.OIDC_DOMAIN = 'foo.bar.com' assert o.userinfo_endpoint() == 'https://foo.bar.com/userinfo' assert o is not None
def test_auth_endpoint_method(self): o = config.OIDCConfig() o.OIDC_DOMAIN = 'foo.bar.com' assert o.auth_endpoint() == 'https://foo.bar.com/authorize' assert o is not None
def test_object_init(self): o = config.OIDCConfig() assert o is not None
def __init__(self): """ :param session: the flask session to update with userinfo """ self.config = config.OIDCConfig() self.person_api_url = self._get_url()