tagged [oauth]

ExternalLoginInfo Email is always null in Microsoft and Facebook oauth2, MVC C#?

ExternalLoginInfo Email is always null in Microsoft and Facebook oauth2, MVC C#? I'm using the following code for `ExternalLoginCallback` In `google` everything is OK. but in `Facebook` and `Microsoft...

26 Apr at 13:26

ServiceStack OAuth2 provider implementation

ServiceStack OAuth2 provider implementation I have application developed with ServiceStack that used credential authentication for login. Now I need services of application to be consumed by other app...

7 May at 09:22

Setting Authorization Header of HttpClient

Setting Authorization Header of HttpClient I have an HttpClient that I am using for a REST API. However I am having trouble setting up the Authorization header. I need to set the header to the token I...

4 Jun at 18:31

How to authenticate user with Azure Active Directory using OAuth 2.0?

How to authenticate user with Azure Active Directory using OAuth 2.0? I have a REST API written in C# and I need to authenticate with an existing Azure AD service. I currently have the username and pa...

How should I implement OAuth for an application?

How should I implement OAuth for an application? I am creating an application for a client that needs to do the following: - - - Where is the best place to start learning about this? Is there a standa...

29 Dec at 18:40

OAuth2 authorization implementation in ServiceStack

OAuth2 authorization implementation in ServiceStack I am researching on OAuth2 authorization service implementation for our website. We have WebServices implementation in ServiceStack with customAuthe...

Cross origin OAuth authentication with ServiceStack

Cross origin OAuth authentication with ServiceStack I would like to use my API website for authentication & authorisation of users and ideally keep my UI site purely static content (html, js, css). I ...

23 May at 11:17

Login using Google OAuth 2.0 with C#

Login using Google OAuth 2.0 with C# I want to allow User to login using `Gmail`. So, I googled and got many samples but all were using OpenID and as I have checked Google Documentation, they have sto...

1 Mar at 09:1

Google OAUTH: The redirect URI in the request did not match a registered redirect URI

Google OAUTH: The redirect URI in the request did not match a registered redirect URI I am trying to make an upload to YouTube from my Java based web app, I spent a few days to understand what and whe...

How to decode OAuth 2.0 for Canvas signed_request in C#?

How to decode OAuth 2.0 for Canvas signed_request in C#? I'm able to successfully validate the signed request for a Facebook canvas app using the example [here](https://stackoverflow.com/questions/338...

23 May at 12:17

Servicestack Windows Universal Social Authentication

Servicestack Windows Universal Social Authentication I am trying to implement social authentication from a c# client within a windows universal 8.1 app. When I post to the auth provider .../googleoaut...

19 Jan at 14:16

Can ServiceStack Runner Get Request Body?

Can ServiceStack Runner Get Request Body? Is it possible, without major hackery, to get the raw request body of a ServiceStack request within the Runner? I am writing an oauth service provider to run ...

7 Jul at 18:1

Oauth 2 autentication from a desktop or console app

Oauth 2 autentication from a desktop or console app I am trying to authenticate to an Oauth 2 service from a console app. When opening the authorization server with the browser (Process.Start...) to a...

What context.DeserializeTicket(token) does?

What context.DeserializeTicket(token) does? I am trying to understand how refresh token works, and I have a pretty good idea, here an example [http://bit.ly/1n9Tbot](http://bit.ly/1n9Tbot), but I foun...

Can anybody explain OAuth?

Can anybody explain OAuth? I've read a bit about it at [http://oauth.net/](http://oauth.net/) , it's "a simple way to publish and interact with protected data" apparently. I think it's exactly what I ...

16 Sep at 18:10

ICustomAuthorizeRequestValidator isn't being called?

ICustomAuthorizeRequestValidator isn't being called? I'm trying to use `AddCustomAuthorizeRequestValidator` method to provide custom claims validation. I can't even get a breakpoint to be hit in the `...

10 Nov at 12:28

Authentication in ASP.NET 5 (vNext)

Authentication in ASP.NET 5 (vNext) I have a traditional ASP.NET app that I want to move to . I am doing this as a learning exercise. My current app uses Forms-based authentication. However, I would l...

Google oAuth 2.0 (JWT token request) for Service Application

Google oAuth 2.0 (JWT token request) for Service Application I'm trying to implement Google oAuth 2 for service accounts described here: [https://developers.google.com/accounts/docs/OAuth2ServiceAccou...

23 May at 10:27

ServiceStack edit Google Oauth authorization Url

ServiceStack edit Google Oauth authorization Url I'm using Google Auth for authentication and authorization for my app. Now, when only one user is signed into Google in the browser and it has previous...

23 May at 11:57

How can I download a single raw file from a private github repo using the command line?

How can I download a single raw file from a private github repo using the command line? On the CI server, I want to fetch a config file that we maintain on Github so it can be shared between many jobs...

8 Aug at 12:52

How to customize error message of OAuthAuthorizationServerProvider?

How to customize error message of OAuthAuthorizationServerProvider? We are using the `OAuthAuthorizationServerProvider` class to do authorization in our ASP.NET Web Api app. If the provided username a...

13 Oct at 09:14

How to add custom claims to access token in IdentityServer4?

How to add custom claims to access token in IdentityServer4? I am using [IdentityServer4](https://identityserver4.readthedocs.io/en/release/). I want to add other custom claims to access token but I'm...

What are Bearer Tokens and token_type in OAuth 2?

What are Bearer Tokens and token_type in OAuth 2? I'm trying to implement the [Resource Owner & Password Credentials](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-15#section-4.3) flow fro...

7 Oct at 07:13

Return error on invalid or expired token

Return error on invalid or expired token I'm trying to implement OAuth Bearer Authentication with Owin. When an invalid or expired token is passed, the default implementation is to log this as a warni...

4 Apr at 05:20

Unit testing APIs that require OAuth tokens

Unit testing APIs that require OAuth tokens I am trying to write a suite of automated integration tests to test my C# client library calls to the [Yahoo Fantasy Sports API](http://developer.yahoo.com/...

8 Mar at 15:35