class SSOProvider:
    """Interface for Piramal SSO integration."""

    def get_authorization_url(self):
        raise NotImplementedError

    def validate_callback(self, request_args):
        raise NotImplementedError

    def get_identity(self, token):
        raise NotImplementedError


class MockSSOProvider(SSOProvider):
    """Development-only provider. Never enable in production."""

    def get_identity(self, token):
        return token
