Class OidcTestClient


  • public class OidcTestClient
    extends Object
    • Field Detail

      • vertx

        io.vertx.core.Vertx vertx
      • client

        io.vertx.ext.web.client.WebClient client
    • Constructor Detail

      • OidcTestClient

        public OidcTestClient()
    • Method Detail

      • getClientAccessToken

        public String 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

        public String getClientAccessToken​(Map<String,​String> extraProps)
        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

        public String 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.
      • 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

        public String 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. 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 userName,
                                     String userSecret,
                                     Map<String,​String> extraProps)
        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

        public String getAuthServerUrl()
        Return URL string configured with a 'quarkus.oidc.auth-server' property.
      • getTokenUrl

        public String 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()