adk_oidcc_oauth_adapter (erlang_adk v0.7.0)

View Source

Production outbound OAuth adapter backed by Oidcc.

Summary

Functions

client_credentials(Provider, ClientId, ClientSecret, Opts)

-spec client_credentials(adk_oauth_adapter:provider(), binary(), binary(), adk_oauth_adapter:opts()) ->
                            {ok, adk_oauth_adapter:token()} | {error, term()}.

refresh_token(Provider, ClientId, ClientSecret, RefreshToken, ExpectedSubject, Opts)

-spec refresh_token(adk_oauth_adapter:provider(),
                    binary(),
                    binary(),
                    binary(),
                    binary(),
                    adk_oauth_adapter:opts()) ->
                       {ok, adk_oauth_adapter:token()} | {error, term()}.