AuthorizeApi

interface AuthorizeApi

Interface provides APIs to authorize a user.

Functions

Link copied to clipboard
@POST(value = "api/v1/authorize")
abstract fun authorize(@Body request: AuthorizationRequest, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<AuthorizationResponse>

This method is used to authorize a user based on the provided authorization context.

Link copied to clipboard
@POST(value = "api/v1/authorize")
abstract fun authorizeBatch(@Body request: AuthorizationRequestBatch, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<AuthorizationResponseBatch>

This method is used to authorize a user for multiple authorization contexts.