Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smartive/cas-fee-adv-mumble-auth-demo
Demo application to show/test the ZITADEL authentication with the Mumble API
https://github.com/smartive/cas-fee-adv-mumble-auth-demo
Last synced: about 4 hours ago
JSON representation
Demo application to show/test the ZITADEL authentication with the Mumble API
- Host: GitHub
- URL: https://github.com/smartive/cas-fee-adv-mumble-auth-demo
- Owner: smartive
- License: apache-2.0
- Created: 2023-12-04T11:55:43.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-08T04:55:07.000Z (9 months ago)
- Last Synced: 2024-02-08T05:36:26.199Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mumble Auth Demo
This is a demo application to show the usage of OIDC within Mumble.
This project uses "authJS", the next iteration of next-auth (v5).
The following steps are necessary to authenticate against the Mumble API:
- A new organization for your team must be created within ZITADEL
- The API project must be granted from the ZITADEL admin
- Create your user within your own organization
- Create the project/application in your organization for your project(s) (e.g. Mumble NextJS Dev / Prod / Whatever)
- Setup the next app according to the lecture
- To use pkce, configure client auth to none and add the pkce check to next-auth:```ts
{
//...
checks: ['pkce', 'state'],
client: {
token_endpoint_auth_method: 'none',
},
//...
}
```- To add the required mumble API ["audience"](https://community.auth0.com/t/what-is-the-audience/71414), configure the scope with the project id:
```ts
{
//...
authorization: {
params: {
scope: 'openid profile email urn:zitadel:iam:org:project:id:229389352298352392:aud',
},
},
//...
}
```You should now be able to log in with your ZITADEL user (in your own organization)
and then call the API with your access token. The API will allow the call if
the audience is correctly fetched and the project is granted to your organization.