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
open override var intercept: FlowContext.(Request) -> Request

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(idpRequestHandler: IdpRequestHandler? = null): Result<Unit>

Authorizes the user using the specified IdP.

Link copied to clipboard
open fun init(input: JsonElement)

open override fun init(input: JsonObject)

Initializes the IdP collector with the given input JSON object.