Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use groups attribute mapping to propogate id token roles
create attribute mapping for user name [#115082717] https://www.pivotaltracker.com/story/show/115082717 Signed-off-by: Jonathan Lo <jlo@us.ibm.com>
- Loading branch information
1 parent
408e9a1
commit 39aa3cd
Showing
5 changed files
with
154 additions
and
35 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
30 changes: 30 additions & 0 deletions
30
server/src/main/java/org/cloudfoundry/identity/uaa/provider/oauth/XOAuthUserAuthority.java
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
/******************************************************************************* | |||
* Cloud Foundry | |||
* Copyright (c) [2009-2016] Pivotal Software, Inc. All Rights Reserved. | |||
* | |||
* This product is licensed to you under the Apache License, Version 2.0 (the "License"). | |||
* You may not use this product except in compliance with the License. | |||
* | |||
* This product includes a number of subcomponents with | |||
* separate copyright notices and license terms. Your use of these | |||
* subcomponents is subject to the terms and conditions of the | |||
* subcomponent's license, as noted in the LICENSE file. | |||
*******************************************************************************/ | |||
package org.cloudfoundry.identity.uaa.provider.oauth; | |||
|
|||
import org.springframework.security.core.GrantedAuthority; | |||
|
|||
public class XOAuthUserAuthority implements GrantedAuthority { | |||
|
|||
private final String authority; | |||
|
|||
public XOAuthUserAuthority(String authority) { | |||
this.authority = authority; | |||
} | |||
|
|||
@Override | |||
public String getAuthority() { | |||
return authority; | |||
} | |||
|
|||
} |
Oops, something went wrong.