Identity¶
Summary¶
Create a credential and pass it to NomadClient. Use client.identity
to read your account, find users, manage groups, or manage personal access tokens.
| Sign-in option | Credential | When to use it |
|---|---|---|
| Personal access token (PAT) | BearerTokenCredential |
Scripts, remote kernels, CI, and scheduled work. |
| Browser | BrowserCredential |
Interactive sign-in, including institutional SSO and MFA. |
| Username and password | PasswordCredential |
Deployments that enable Keycloak Direct Access Grants. |
| Existing Keycloak access token | BearerTokenCredential |
Another application handles sign-in and token renewal. |
NomadClient uses the credential's deployment. Omit endpoint on the credential for NOMAD Central. Set it to the full HTTPS API v1 base URL for a self-hosted Oasis, development, or test deployment. Move any old NomadClient(endpoint=...) setting to its credential.
Workflows¶
- Set up a client and choose the deployment and connection settings.
- Authenticate with a PAT, a browser, a username and password, or a Keycloak access token.
- Set up Oasis sign-in for your own Keycloak, a brokered SSO provider, or an external SSO provider used directly.
- Check access and scopes to compare
enforced_scopes,requested_scopes, andgranted_scopes. - Work with accounts and users to read your profile, find collaborators, or send an invitation.
- Manage groups and their membership roles.
- Transfer ownership of groups and projects with object chaining or explicit resource references.
- Manage personal access tokens to create, filter, rotate, and revoke tokens.
- Connections and HPC covers worker setup, connection pools, and custom network settings.
API reference¶
- Python API covers classes, constructor parameters, instance methods, properties, model fields, and enum members.
- REST API covers HTTP endpoints, request fields, and responses.