20 lines
549 B
Go
20 lines
549 B
Go
/*
|
|
* Copyright 2024 the KubeSphere Authors.
|
|
* Please refer to the LICENSE file in the root directory of the project.
|
|
* https://github.com/kubesphere/kubesphere/blob/master/LICENSE
|
|
*/
|
|
|
|
package identityprovider
|
|
|
|
// Identity represents the account mapped to kubesphere
|
|
type Identity interface {
|
|
// GetUserID required
|
|
// Identifier for the End-User at the Issuer.
|
|
GetUserID() string
|
|
// GetUsername optional
|
|
// The username which the End-User wishes to be referred to kubesphere.
|
|
GetUsername() string
|
|
// GetEmail optional
|
|
GetEmail() string
|
|
}
|