All Projects → jurabek → IdentityServer4.PhoneNumberAuth

jurabek / IdentityServer4.PhoneNumberAuth

Licence: MIT license
Sample passwordless phone number authentication using OAuth in ASP.NET Core 2.2

Programming Languages

C#
18002 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to IdentityServer4.PhoneNumberAuth

Jpproject.identityserver4.adminui
🔧 ASP.NET Core 3 & Angular 8 Administration Panel for 💞IdentityServer4 and ASP.NET Core Identity
Stars: ✭ 717 (+763.86%)
Mutual labels:  oauth2, openid, asp-net-core, identityserver4
Hydra
OpenID Certified™ OpenID Connect and OAuth Provider written in Go - cloud native, security-first, open source API security for your infrastructure. SDKs for any language. Compatible with MITREid.
Stars: ✭ 11,884 (+14218.07%)
Mutual labels:  oauth, oauth2, openid, oidc
Aspnetcoreid4external
external OpenID Connect Login to IdentityServer4 with AAD
Stars: ✭ 63 (-24.1%)
Mutual labels:  oauth2, openid, asp-net-core, identityserver4
OpenAM
OpenAM is an open access management solution that includes Authentication, SSO, Authorization, Federation, Entitlements and Web Services Security.
Stars: ✭ 476 (+473.49%)
Mutual labels:  oauth, oauth2, oidc
Node Oidc Provider
OpenID Certified™ OAuth 2.0 Authorization Server implementation for Node.js
Stars: ✭ 2,018 (+2331.33%)
Mutual labels:  oauth2, openid, oidc
Aspnetcorehybridflowwithapi
ASP.NET Core MVC application using API, OpenID Connect Hybrid flow , second API, Code Flow with PKCE
Stars: ✭ 127 (+53.01%)
Mutual labels:  oauth2, openid, asp-net-core
Jpproject.identityserver4.sso
🔒 ASP.NET Core 3.1 Open Source SSO. Built within IdentityServer4 🔑
Stars: ✭ 298 (+259.04%)
Mutual labels:  oauth2, asp-net-core, identityserver4
Next Auth
Authentication for Next.js
Stars: ✭ 8,362 (+9974.7%)
Mutual labels:  oauth, oauth2, oidc
Passport
Simple, unobtrusive authentication for Node.js.
Stars: ✭ 19,608 (+23524.1%)
Mutual labels:  oauth, oauth2, openid
AspNetCoreMvcAngular
ASP.NET Core MVC with angular in MVC View OpenID Connect Hybrid Flow
Stars: ✭ 54 (-34.94%)
Mutual labels:  openid, asp-net-core, oidc
Netcore Postgres Oauth Boiler
A basic .NET Core website boilerplate using PostgreSQL for storage, Adminer for db management, Let's Encrypt for SSL certificates and NGINX for routing.
Stars: ✭ 57 (-31.33%)
Mutual labels:  oauth, oauth2, net-core
fastapi-azure-auth
Easy and secure implementation of Azure AD for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
Stars: ✭ 174 (+109.64%)
Mutual labels:  oauth2, openid, oidc
Oauthlib
A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
Stars: ✭ 2,323 (+2698.8%)
Mutual labels:  oauth, oauth2, oidc
AzureADAuthRazorUiServiceApiCertificate
Azure AD flows using ASP.NET Core and Microsoft.Identity
Stars: ✭ 41 (-50.6%)
Mutual labels:  oauth, oauth2, oidc
Aspnet5identityserverangularimplicitflow
OpenID Connect Code / Implicit Flow with Angular and ASP.NET Core 5 IdentityServer4
Stars: ✭ 670 (+707.23%)
Mutual labels:  oauth2, openid, identityserver4
Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
Stars: ✭ 457 (+450.6%)
Mutual labels:  oauth, oauth2, openid
Play Silhouette
Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, 2FA, TOTP, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 826 (+895.18%)
Mutual labels:  oauth, oauth2, openid
External Auth Server
easy auth for reverse proxies
Stars: ✭ 189 (+127.71%)
Mutual labels:  oauth, oauth2, openid
Authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
Stars: ✭ 2,854 (+3338.55%)
Mutual labels:  oauth, oauth2, oidc
IdentityServer4.Contrib.AspNetCore.Testing
Testing framework for ASP.NET Core and Identity-Server 4
Stars: ✭ 16 (-80.72%)
Mutual labels:  openid, identityserver4

IdentityServer4.PhoneNumberAuth

Sample passwordless phone number authentication with IdentityServer4 in ASP.NET Core 3.1

ATTENTION: This implementation is not fully rfc6749 complient, for creating custom grant_type's follow instructions in section 8.3

NOTE: To be able to test locally you can change "ReturnVerifyTokenForTesting : true" on appsettings.json it will returns us verify_token on response, however in production usages it must be removed and you should add real SMS service (Twilio, Nexmo, etc..) by implementing ISmsServices

curl -H "Content-Type: application/json" \ 
     -X POST \ 
     -d '{"phonenumber":"+198989822"}' \ 
     http://localhost:62537/api/verify_phone_number
{
    "resend_token": "CfDJ8F2fHxOfr9xAtc...",
    "verify_token": "373635"
}

Authentication by verification token

curl -H "Content-Type: application/x-www-form-urlencoded" \
     -X POST \ 
     -d 'grant_type=phone_number_token&client_id=phone_number_authentication&client_secret=secret&phone_number=%2B198989822&verification_token=373635' \ 
      http://localhost:62537/connect/token
{
    "access_token": "CfDJ8F2fHxOfr9xAtc......",
    "expires_in": 3600,
    "token_type": "Bearer",
    "refresh_token": "CfDJ8F2fHxOfr9xAtc...."
}

Test your api controller by Bearer token

curl -i http://localhost:62732/api/Identity \
     -H "Authorization: Bearer CfDJ8F2fHxOfr9xAtc......"
{
    "type": "phone_number",
    "value": "+198989822"
}
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].