aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/source/oauth2/providers_base.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/source/oauth2/providers_base.go')
-rw-r--r--services/auth/source/oauth2/providers_base.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/auth/source/oauth2/providers_base.go b/services/auth/source/oauth2/providers_base.go
index 9d4ab106e5..d34597d6d9 100644
--- a/services/auth/source/oauth2/providers_base.go
+++ b/services/auth/source/oauth2/providers_base.go
@@ -14,6 +14,13 @@ import (
type BaseProvider struct {
name string
displayName string
+
+ // TODO: maybe some providers also support SSH public keys, then they can set this to true
+ supportSSHPublicKey bool
+}
+
+func (b *BaseProvider) SupportSSHPublicKey() bool {
+ return b.supportSSHPublicKey
}
// Name provides the technical name for this provider