social / pragma.oidc / OidcService /

OidcService #

class OidcService(pragmaNode: PragmaNode, instanceId: UUID) : DistributedService, ConfigHandler<OidcServiceConfig>

OIDC Service is a service that may be used to sign OIDC-compliant id tokens

Constructors #

OidcService

fun OidcService(pragmaNode: PragmaNode, instanceId: UUID)

Functions #

NameSummary

getConfigurationV1

suspend fun getConfigurationV1(session: ServiceSession, request: OidcRpc.GetConfigurationV1Request): OidcRpc.GetConfigurationV1Response

Get the openid-configuration and JWK json that should be rendered in our OIDC endpoints.

getIdTokenV1

suspend fun getIdTokenV1(session: ServiceSession, request: OidcRpc.GetIdTokenV1Request): OidcRpc.GetIdTokenV1Response

Generate and sign a valid OIDC-compliant token for a given pragma socialId.

getUserInfoV1

suspend fun getUserInfoV1(session: ServiceSession, request: OidcRpc.GetUserInfoV1Request): OidcRpc.GetUserInfoV1Response

An alternative flow to confirm the legitimacy of an OIDC JWT