Auth

OIDC Auth.

class controller.sentry.auth.ControllerOIDCAuthenticationBackend(*args, **kwargs)[source]

Bases: OIDCAuthenticationBackend

This class is responsible of the authentication.

create_user(claims: dict) User[source]

This method is responsible for the user creation.

It create the user with the username and default permissions

Parameters:

claims (dict) – OIDC claims

Returns:

The user

Return type:

User

update_user(user: User, claims: dict) User[source]

This method is responsible for updating the user.

Each times the user login we update his information

Parameters:
  • user (User) – The user to update

  • claims (dict) – OIDC claims

Returns:

The new user

Return type:

User

controller.sentry.auth.get_group(group: str) Group[source]

get_group function is a cached helper to get a group from it’s name.

Parameters:

group (str) – The group name

Returns:

The group

Return type:

Group