The oauth_client_credentials_grant
feature implements the client credentials grant flow.
Service-to-service secure communication, i.e. resource servers.
plugin :rodauth do
enable :oauth_client_credentials_grant
end
The use the token endpoint with the client credentials grant, you can set the following request parameter:
grant_type
: "client_credentials"
;rodauth.current_oauth_account
on oauth-protected routes will return nil
(unlike rodauth.current_oauth_application
)