Skip to content

mrahhal/AppAuthIdentityServer4

 
 

Repository files navigation

AppAuth with IdentityServer 4 for android

Android sample using AppAuth-Android with identity server 4

Identity Server on the backend

    new Client
			{
				ClientId = "myClientId",
				ClientName = "myClientName",
				AllowedGrantTypes = GrantTypes.CodeAndClientCredentials,
				RequireConsent = false,

				ClientSecrets =
				{
					new Secret("myClientSecret".Sha256())
				},

				RedirectUris = { "myRedirectUri://callback" },

				AllowedScopes =
				{
					IdentityServerConstants.StandardScopes.OpenId,
					IdentityServerConstants.StandardScopes.Profile,
					IdentityServerConstants.StandardScopes.Email,
					IdentityServerConstants.StandardScopes.Phone,
				},

				AllowOfflineAccess = true
			}

Edit the data in the gradle.properties file

clientId= "myClientId"
clientSecret= "myClientSecret"
redirectUri= "myRedirectUri://callback"
scope= "openid offline_access"
authorizationEndpointUri= "myAuthorizationEndpointUri"
tokenEndpointUri= "myTokenEndPointUri"
registrationEndpointUri= "myRegistrationEndPointUri"
responseType= "code"

About

Android sample using AppAuth-Android with identity server 4

Resources

License

Code of conduct

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%