forked from wso2-attic/carbon-identity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging google openid connect authenticator
- Loading branch information
Showing
8 changed files
with
745 additions
and
0 deletions.
There are no files selected for viewing
97 changes: 97 additions & 0 deletions
97
...-authenticators/org.wso2.carbon.identity.application.authenticator.oidc.googleext/pom.xml
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<parent> | ||
<groupId>org.wso2.carbon.identity</groupId> | ||
<artifactId>application-authenticators</artifactId> | ||
<version>4.4.1-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>org.wso2.carbon.identity.application.authenticator.oidc.googleext</artifactId> | ||
<packaging>bundle</packaging> | ||
<name>WSO2 Carbon - Google OpenID Connect Application Authenticator</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.wso2.carbon</groupId> | ||
<artifactId>org.wso2.carbon.logging</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.wso2.carbon.identity</groupId> | ||
<artifactId>org.wso2.carbon.identity.application.authentication.framework</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.wso2.carbon</groupId> | ||
<artifactId>org.wso2.carbon.ui</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.amber.wso2</groupId> | ||
<artifactId>amber</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.wso2.carbon.identity</groupId> | ||
<artifactId>org.wso2.carbon.identity.application.common</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.wso2.carbon.identity</groupId> | ||
<artifactId>org.wso2.carbon.identity.application.authenticator.oidc</artifactId> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-scr-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<instructions> | ||
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> | ||
<Bundle-Name>${project.artifactId}</Bundle-Name> | ||
<Private-Package> | ||
org.wso2.carbon.identity.application.authenticator.oidc.googleext.internal | ||
</Private-Package> | ||
<Import-Package> | ||
org.apache.axis2.*; | ||
version="${axis2.osgi.version.range}", | ||
org.apache.axiom.*; | ||
version="${axiom.osgi.version.range}", | ||
org.wso2.carbon.ui.*, | ||
org.apache.commons.logging.*; version="1.0.4", | ||
org.osgi.framework, | ||
org.wso2.carbon.identity.application.authentication.framework.*, | ||
javax.servlet;version="${imp.pkg.version.javax.servlet}", | ||
javax.servlet.http;version="${imp.pkg.version.javax.servlet}", | ||
*;resolution:=optional | ||
</Import-Package> | ||
<Export-Package> | ||
!org.wso2.carbon.identity.application.authenticator.oidc.googleext.internal, | ||
org.wso2.carbon.identity.application.authenticator.oidc.googleext.* | ||
</Export-Package> | ||
<DynamicImport-Package>*</DynamicImport-Package> | ||
</instructions> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
29 changes: 29 additions & 0 deletions
29
...identity/application/authenticator/oidc/googleext/GoogleOAuth2AuthenticationConstant.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
*Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
*WSO2 Inc. licenses this file to you under the Apache License, | ||
*Version 2.0 (the "License"); you may not use this file except | ||
*in compliance with the License. | ||
*You may obtain a copy of the License at | ||
* | ||
*http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
*Unless required by applicable law or agreed to in writing, | ||
*software distributed under the License is distributed on an | ||
*"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
*KIND, either express or implied. See the License for the | ||
*specific language governing permissions and limitations | ||
*under the License. | ||
*/ | ||
package org.wso2.carbon.identity.application.authenticator.oidc.googleext; | ||
|
||
public class GoogleOAuth2AuthenticationConstant { | ||
|
||
public static final String GOOGLE_OAUTH_ENDPOINT = "https://accounts.google.com/o/oauth2/auth"; | ||
public static final String GOOGLE_TOKEN_ENDPOINT = "https://accounts.google.com/o/oauth2/token"; | ||
public static final String GOOGLE_USERINFO_ENDPOINT = "https://www.googleapis.com/oauth2/v3/userinfo?schema=openid"; | ||
public static final String GOOGLE_CONNECTOR_FRIENDLY_NAME = "Google OAuth2/OpenID Connect"; | ||
public static final String GOOGLE_CONNECTOR_NAME = "GoogleOAUth2OpenIDAuthenticator"; | ||
public static final String QUERY_STRING = "scope=openid%20email%20profile"; | ||
public static final String CALLBACK_URL = "Google-callback-url"; | ||
} |
Oops, something went wrong.