IdpCollector

A collector class for handling Identity Provider (IdP) authorization.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open lateinit override var continueNode: ContinueNode

The continue node for the DaVinci flow.

Link copied to clipboard
open lateinit override var davinci: Workflow

The DaVinci workflow instance.

Link copied to clipboard

Indicates whether the IdP is enabled.

Link copied to clipboard
lateinit var idpId: String

The IdP identifier.

Link copied to clipboard
lateinit var idpType: String

The type of IdP.

Link copied to clipboard

Overrides the request with the resume request if initialized, else return the input request.

Link copied to clipboard
lateinit var label: String

The label for the IdP.

Link copied to clipboard
lateinit var link: URL

The URL link for IdP authentication.

Functions

Link copied to clipboard
suspend fun authorize(redirectUri: Uri = "".toUri(), idpRequestHandler: IdpRequestHandler = getRequestHandler(redirectUri)): Result<Unit>

Authorizes the user using the specified IdP.

Link copied to clipboard
open override fun init(input: JsonObject): IdpCollector

Initializes the IdP collector with the given input JSON object.