[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16761869#comment-16761869
 ] 

ASF subversion and git services commented on OPENMEETINGS-2012:
---------------------------------------------------------------

Commit 19037567323f07ae3e2656b2f6f83ad5ab579f8f in openmeetings's branch 
refs/heads/4.0.x from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=1903756 ]

[OPENMEETINGS-2012] bearer in Authorization header is camel case now


> Integrate Wso2 Identity Server
> ------------------------------
>
>                 Key: OPENMEETINGS-2012
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2012
>             Project: Openmeetings
>          Issue Type: Improvement
>          Components: OAuth
>    Affects Versions: 4.0.7
>            Reporter: Adrian Avila
>            Assignee: Maxim Solodovnik
>            Priority: Major
>             Fix For: 4.0.8
>
>
> Wso2 Identity Server in the header value for 'Authorization' does not accept 
> 'bearer'.
> /openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/auth/SignInPage.java
> line #277
>    
>     private static OAuthUser getAuthParams(String token, String code, 
> OAuthServer server) throws IOException {
>         // prepare url
>         String requestInfoUrl = server.getRequestInfoUrl();
>         requestInfoUrl = prepareUrlParams(requestInfoUrl, 
> server.getClientId(), getRedirectUri(server)
>                 , server.getClientSecret(), token, code);
>         // send request
>         HttpURLConnection connection = (HttpURLConnection) new 
> URL(requestInfoUrl).openConnection();
>         if (server.getRequestInfoMethod() == RequestInfoMethod.HEADER) {
>             connection.setRequestProperty("Authorization",{color:#d04437} 
> String.format("bearer %s", token){color}); //HERE
>         } else {
>             connection.setRequestMethod(server.getRequestInfoMethod().name());
>         }
>         prepareConnection(connection);
>         String json = IOUtils.toString(connection.getInputStream(), UTF_8);
>         log.debug("User info={}", json);
>         // parse json result
>         return new OAuthUser(json, server);
>     }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to