org.cloudfoundry.uaa.authorizations.Authorizations Maven / Gradle / Ivy
/*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cloudfoundry.uaa.authorizations;
import reactor.core.publisher.Mono;
/**
* Main entry point to the UAA Authorization Client API
*/
public interface Authorizations {
/**
* Makes the Authorize By Authorization Code Grant (API) request
*
* @param request Authorize By Authorization Code Grant (API) request
* @return the authorization code
*/
Mono authorizationCodeGrantApi(AuthorizeByAuthorizationCodeGrantApiRequest request);
/**
* Makes the Authorize By Authorization Code Grant (Browser) request
*
* @param request Authorize By Authorization Code Grant (Browser) request
* @return the authentication redirect URI
*/
Mono authorizationCodeGrantBrowser(
AuthorizeByAuthorizationCodeGrantBrowserRequest request);
/**
* Makes the Authorize By Authorization Code Grant (Hybrid) request
*
* @param request Authorize By Authorization Code Grant (Hybrid) request
* @return the authentication redirect URI
*/
Mono authorizationCodeGrantHybrid(
AuthorizeByAuthorizationCodeGrantHybridRequest request);
/**
* Makes the Get Open ID Provider Configuration request
*
* @param request Get Open ID Provider Configuration request
* @return the Open ID Provider Configuration
*/
Mono getOpenIdProviderConfiguration(
GetOpenIdProviderConfigurationRequest request);
/**
* Makes the Authorize By Implicit Grant (Browser) request
*
* @param request Authorize By Implicit Grant (Browser) request
* @return the authentication redirect URI
*/
Mono implicitGrantBrowser(AuthorizeByImplicitGrantBrowserRequest request);
/**
* Makes the Authorize By Open ID with Authorization Code Grant request
*
* @param request Authorize By Open ID with an Authorization Code Grant request
* @return the authentication location URI, including Access Token
*/
Mono openIdWithAuthorizationCodeAndIdToken(
AuthorizeByOpenIdWithAuthorizationCodeGrantRequest request);
/**
* Makes the Authorize By Open ID with an ID Token request
*
* @param request Authorize By Open ID with an ID Token request
* @return the authentication location URI, including Access Token
*/
Mono openIdWithIdToken(AuthorizeByOpenIdWithIdTokenRequest request);
/**
* Makes the Authorize By Open ID with Implicit Grant request
*
* @param request Authorize By Open ID with Implicit Grant request
* @return the authentication location URI, including Access Token
*/
Mono openIdWithTokenAndIdToken(AuthorizeByOpenIdWithImplicitGrantRequest request);
}