-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add login manager * chore: login manager files * chore: register login manager * chore: fix tests Some api layer tests require a real authenticator, so the jimm suite has been modified to support this. Also fixes some unit tests that needed to update how they setup their mocks. * chore: fixes after rebase Fix DB migration signature * chore: fix package docstrings added nil oauth interface check and some docstrings
- Loading branch information
Showing
25 changed files
with
632 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2025 Canonical. | ||
|
||
package login | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/canonical/jimm/v3/internal/openfga" | ||
) | ||
|
||
// Login is a type alias to export loginManager for use in tests. | ||
type LoginManager = loginManager | ||
|
||
func (j *LoginManager) GetOrCreateIdentity(ctx context.Context, identifier string) (*openfga.User, error) { | ||
return j.getOrCreateIdentity(ctx, identifier) | ||
} |
Oops, something went wrong.