HOAuth2 Demo

Authorization Code flow

{{#idps}}
{{^isLogin}} Sign in with {{idpName}} {{/isLogin}} {{#isLogin}}

Welcome to {{idpName}}

{{#user}}
Hello, {{idpName}}
{{/user}} Logout Refresh {{/isLogin}}
{{/idps}}

Password flow

{{#idps}} {{#hasPasswordGrant}}
Sign-in with {{idpName}}
{{/hasPasswordGrant}} {{/idps}}

Client Credentials flow

{{#idps}} {{#hasClientCredentialsGrant}}
Sign-in with {{idpName}}
{{/hasClientCredentialsGrant}} {{/idps}}

JWT Bearer flow

Test Google service account

Device Auth flow

{{#idps}} {{#hasDeviceGrant}}
Sign-in with {{idpName}}
{{/hasDeviceGrant}} {{/idps}}

Notes

  1. For StackExchange, the callback URI cannot have port, hence have manually add port 9988 in browser when Stack Exchange redirects back.
  2. For Slack, the callback url has to be https and without any port hence also need manual intervention. (TODO: add tls to the server)