Package io.quarkus.test.oidc.client
Class OidcTestClient
java.lang.Object
io.quarkus.test.oidc.client.OidcTestClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static io.vertx.core.buffer.BufferencodeForm(io.vertx.core.MultiMap form) getAccessToken(String userName, String userSecret) Get an access token from the default tenant realm using a password grant with the provided user name, user secret.getAccessToken(String clientId, String clientSecret, String userName, String userSecret) Get an access token from the default tenant realm using a password grant with the provided client id, client secret, user name, user secret, client id and user secret.getAccessToken(String clientId, String clientSecret, String userName, String userSecret, Map<String, String> extraProps) Get an access token using a password grant with the provided user name, user secret, client id and secret, and scopes.Get an access token from the default tenant realm using a password grant with the provided user name, user secret, and additional properties.Return URL string configured with a 'quarkus.oidc.auth-server' property.Get an access token a client_credentials grant.getClientAccessToken(String clientId, String clientSecret) Get an access token from the default tenant realm using a client_credentials grant with a the provided client id and secret.Get an access token using a client_credentials grant with the provided client id and secret, and additional properties.getClientAccessToken(Map<String, String> extraProps) Get an access token a client_credentials grant with additional properties.Return URL string configured with a 'quarkus.oidc.auth-server' property.
-
Field Details
-
vertx
io.vertx.core.Vertx vertx -
client
io.vertx.ext.web.client.WebClient client
-
-
Constructor Details
-
OidcTestClient
public OidcTestClient()
-
-
Method Details
-
getClientAccessToken
Get an access token a client_credentials grant. Client id must be configured with the `quarkus.oidc.client-id` property. Client secret must be configured with the `quarkus.oidc.credentials.secret` property. -
getClientAccessToken
Get an access token a client_credentials grant with additional properties. Client id must be configured with the `quarkus.oidc.client-id` property. Client secret must be configured with the `quarkus.oidc.credentials.secret` property. -
getClientAccessToken
Get an access token from the default tenant realm using a client_credentials grant with a the provided client id and secret. -
getClientAccessToken
public String getClientAccessToken(String clientId, String clientSecret, Map<String, String> extraProps) Get an access token using a client_credentials grant with the provided client id and secret, and additional properties. -
getAccessToken
Get an access token from the default tenant realm using a password grant with the provided user name, user secret. Client id must be configured with the `quarkus.oidc.client-id` property. Client secret must be configured with the `quarkus.oidc.credentials.secret` property. -
getAccessToken
Get an access token from the default tenant realm using a password grant with the provided user name, user secret, and additional properties. Client id must be configured with the `quarkus.oidc.client-id` property. Client secret must be configured with the `quarkus.oidc.credentials.secret` property. -
getAccessToken
public String getAccessToken(String clientId, String clientSecret, String userName, String userSecret) Get an access token from the default tenant realm using a password grant with the provided client id, client secret, user name, user secret, client id and user secret. -
getAccessToken
public String getAccessToken(String clientId, String clientSecret, String userName, String userSecret, Map<String, String> extraProps) Get an access token using a password grant with the provided user name, user secret, client id and secret, and scopes. -
getAuthServerUrl
Return URL string configured with a 'quarkus.oidc.auth-server' property. -
getTokenUrl
Return URL string configured with a 'quarkus.oidc.auth-server' property. -
encodeForm
public static io.vertx.core.buffer.Buffer encodeForm(io.vertx.core.MultiMap form) -
close
public void close()
-