-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): add support for multiple user authentication methods
- Added a list to represent the authentication methods available for each user. - Introduced an `authentication` attribute to manage authentication method settings, such as enabling or disabling specific methods. - Updated the `/info` endpoint to include authentication details in its response.
- Loading branch information
Showing
19 changed files
with
1,116 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package responses | ||
|
||
type SystemInfo struct { | ||
Version string `json:"version"` | ||
Endpoints *SystemEndpointsInfo `json:"endpoints"` | ||
Setup bool `json:"setup"` | ||
Authentication *SystemAuthenticationInfo `json:"authentication"` | ||
} | ||
|
||
type SystemAuthenticationInfo struct { | ||
Local bool `json:"local"` | ||
} | ||
|
||
type SystemEndpointsInfo struct { | ||
API string `json:"api"` | ||
SSH string `json:"ssh"` | ||
} |
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
Oops, something went wrong.