All Projects → hadiidbouk → AppAuthIdentityServer4

hadiidbouk / AppAuthIdentityServer4

Licence: Apache-2.0 license
Android sample using AppAuth-Android with identity server 4

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to AppAuthIdentityServer4

Identityserver4.ldapextension
IdentityServer4 Ldap Extension (OpenLdap or ActiveDirectory)
Stars: ✭ 163 (+409.38%)
Mutual labels:  identityserver4
LYM.NetCore
IdentityServer4+EFCore
Stars: ✭ 17 (-46.87%)
Mutual labels:  identityserver4
IdentityServer4.Contrib.AspNetCore.Testing
Testing framework for ASP.NET Core and Identity-Server 4
Stars: ✭ 16 (-50%)
Mutual labels:  identityserver4
Theidserver
OpenID/Connect server based on IdentityServer4
Stars: ✭ 170 (+431.25%)
Mutual labels:  identityserver4
Identityserver4.admin
The administration for the IdentityServer4 and Asp.Net Core Identity
Stars: ✭ 2,998 (+9268.75%)
Mutual labels:  identityserver4
MsCoreOne
MsCoreOne is a simple Ecommerce with using many technologies such as .NET 5, Entity Framework Core 5, React 16.13 with modern Clean Architecture, Domain-Driven Design, CQRS, SOLID, Identity Server 4, Blazor. It will focus on resolving the problems always see in the process to develop projects.
Stars: ✭ 77 (+140.63%)
Mutual labels:  identityserver4
Identityserver4 Example
Example IdentityServer 4 Implementation
Stars: ✭ 136 (+325%)
Mutual labels:  identityserver4
fullstack-jobs
Real(ish) demo using Angular with ASP.NET Core GraphQL and IdentityServer.
Stars: ✭ 84 (+162.5%)
Mutual labels:  identityserver4
Samples.IdentityServer4.Saml2pIntegration
IdentityServer 4 implementation acting as SAML 2.0 IdP and SP
Stars: ✭ 51 (+59.38%)
Mutual labels:  identityserver4
Authentication
Authentication examples for AspNetCore 3.1
Stars: ✭ 37 (+15.63%)
Mutual labels:  identityserver4
Destiny.core.flow
Destiny.Core.Flow是基于.Net Core,VUE前后分离,开发的一个开源Admin管理框架目前有以下模块:菜单管理、用户管理、角色管理、用户角色、角色权限等功能。
Stars: ✭ 184 (+475%)
Mutual labels:  identityserver4
Identityserverdemo
ASP.NET Core 2.x/3.x、.NET 5.x and IdentityServer4 Learn
Stars: ✭ 214 (+568.75%)
Mutual labels:  identityserver4
AspNetCoreBackChannelLogout
ASP.NET Core Back-Channel Logout for Hybrid Clients, Redis, Key Vault, Azure
Stars: ✭ 17 (-46.87%)
Mutual labels:  identityserver4
Aspnetcoreangularsignalrsecurity
Security with ASP.NET Core, SignalR and Angular
Stars: ✭ 171 (+434.38%)
Mutual labels:  identityserver4
example-oidc
OIDC (OpenID Connect) Example for http://openid.net/connect/
Stars: ✭ 221 (+590.63%)
Mutual labels:  identityserver4
Modernarchitectureshop
The Microservices Online Shop is an application with a modern software architecture that is cleanly designed and based on.NET lightweight technologies. The shop has two build variations. The first variant is the classic Microservices Architectural Style. The second one is with Dapr. Dapr has a comprehensive infrastructure for building highly decoupled Microservices; for this reason, I am using Dapr to achieve the noble goal of building a highly scalable application with clean architecture and clean code.
Stars: ✭ 154 (+381.25%)
Mutual labels:  identityserver4
FabricSSO
A SSO(Single Sign On) platform with Microservices architecture built on IdentityServer 4
Stars: ✭ 14 (-56.25%)
Mutual labels:  identityserver4
OcelotSample
Ocelot使用案例,结合IdentityServer4进行鉴权,结合Consul进行服务治理
Stars: ✭ 58 (+81.25%)
Mutual labels:  identityserver4
Joker
An example of microservices container based application which implemented different approaches within each microservice (DDD, CQRS, Simple CRUD)
Stars: ✭ 41 (+28.13%)
Mutual labels:  identityserver4
squidex-identity
Identity Server for Squidex Headless CMS
Stars: ✭ 28 (-12.5%)
Mutual labels:  identityserver4

AppAuth with IdentityServer 4 for android

You can now use the AppAuth library with WebView check this

Android sample using AppAuth-Android with IdentityServer4

Identity Server on the backend

new Client
{
    	ClientId = _configuration["Clients:Mobile:Id"],
 	ClientName = "Mobile Application",
        ClientSecrets = { new Secret(_configuration["Clients:Mobile:Secret"].Sha256())},
        RedirectUris = {_configuration["Clients:Mobile:RedirectUrl"]},
        PostLogoutRedirectUris = { _configuration["Clients:Mobile:PostLogoutRedirectUrl"] },
	
        AllowedGrantTypes = GrantTypes.Code,
        AllowAccessTokensViaBrowser = true,
        RequireConsent = false,

        AllowOfflineAccess = true,
        RefreshTokenUsage = TokenUsage.ReUse,

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

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"

Add the redirect uri to gradle.app :

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.3"
    defaultConfig {
       ...
        manifestPlaceholders = [
                'appAuthRedirectScheme': 'myRedirectUri' //Without ://callback
        ]
    }
}

Add the redirect uri to the RedirectUriReceiverActivity in manifest :

<activity
	android:name="net.openid.appauth.RedirectUriReceiverActivity"
	android:theme="@style/Theme.AppCompat.NoActionBar">
		<intent-filter>
			<action android:name="android.intent.action.VIEW"/>

			<category android:name="android.intent.category.DEFAULT"/>
			<category android:name="android.intent.category.BROWSABLE"/>

			<data android:scheme="myRedirectUri"/>
		</intent-filter>
</activity>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].