-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,333 additions
and
118 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 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,29 @@ | ||
package internal | ||
|
||
// AuthType defines different authentication types. | ||
type AuthType string | ||
|
||
const ( | ||
AuthTypeUnspecified AuthType = "unspecified" | ||
// Username and password, or key based authentication | ||
AuthTypePassword AuthType = "password" | ||
// Connection string authentication | ||
AuthTypeConnectionString AuthType = "connectionString" | ||
// Microsoft EntraID token credential | ||
AuthTypeUserAssignedManagedIdentity AuthType = "userAssignedManagedIdentity" | ||
) | ||
|
||
func GetAuthTypeDescription(authType AuthType) string { | ||
switch authType { | ||
case AuthTypeUnspecified: | ||
return "Unspecified" | ||
case AuthTypePassword: | ||
return "Username and password" | ||
case AuthTypeConnectionString: | ||
return "Connection string" | ||
case AuthTypeUserAssignedManagedIdentity: | ||
return "User assigned managed identity" | ||
default: | ||
return "Unspecified" | ||
} | ||
} |
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
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.