Skip to content
Snippets Groups Projects
Unverified Commit 76bb453f authored by Andrew Block's avatar Andrew Block
Browse files

Setting email for OpenShift connector

parent b9787d48
No related branches found
No related tags found
No related merge requests found
...@@ -177,6 +177,7 @@ func (c *openshiftConnector) HandleCallback(s connector.Scopes, r *http.Request) ...@@ -177,6 +177,7 @@ func (c *openshiftConnector) HandleCallback(s connector.Scopes, r *http.Request)
UserID: user.UID, UserID: user.UID,
Username: user.Name, Username: user.Name,
PreferredUsername: user.Name, PreferredUsername: user.Name,
Email: user.Name,
Groups: user.Groups, Groups: user.Groups,
} }
......
...@@ -180,6 +180,7 @@ func TestCallbackIdentity(t *testing.T) { ...@@ -180,6 +180,7 @@ func TestCallbackIdentity(t *testing.T) {
expectEquals(t, identity.UserID, "12345") expectEquals(t, identity.UserID, "12345")
expectEquals(t, identity.Username, "jdoe") expectEquals(t, identity.Username, "jdoe")
expectEquals(t, identity.PreferredUsername, "jdoe") expectEquals(t, identity.PreferredUsername, "jdoe")
expectEquals(t, identity.Email, "jdoe")
expectEquals(t, len(identity.Groups), 1) expectEquals(t, len(identity.Groups), 1)
expectEquals(t, identity.Groups[0], "users") expectEquals(t, identity.Groups[0], "users")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment