tagged [oauth-2.0]

Setting ServiceStack requests authentication from OpenAuth token

Setting ServiceStack requests authentication from OpenAuth token (This question can be seen as follow ups to these two StackOverflow posts about OpenAuth with DotNetOpenAuth in a ServiceStack scenario...

RestSharp OAuth2 Bearer Authentication Failing With Access Denied

RestSharp OAuth2 Bearer Authentication Failing With Access Denied I have implemented my own custom `IAuthenticator` called `OAuth2BearerAuthenticator` which basically takes in a `ClientId` and `Client...

27 Apr at 10:53

Manually decode OAuth bearer token in c#

Manually decode OAuth bearer token in c# In my Web Api 2.2 OWIN based application I have a situation where I manually need to decode the bearer token but I don't know how to do this. This is my startu...

IdentityServer "invalid_client" error always returned

IdentityServer "invalid_client" error always returned I'm trying to use IdentityServer3, but don't know why I'm getting "invalid_client" error always, always no matter what I do. This is the code I'm ...

JWT and Web API (JwtAuthForWebAPI?) - Looking For An Example

JWT and Web API (JwtAuthForWebAPI?) - Looking For An Example I've got a Web API project fronted by Angular, and I want to secure it using a JWT token. I've already got user/pass validation happening, ...

Google Oauth error: At least one client secrets (Installed or Web) should be set

Google Oauth error: At least one client secrets (Installed or Web) should be set I'm using Google's Oauth 2.0 to upload videos to Youtube via our server. My client ID is a "service account". I downloa...

11 Aug at 21:19

How can I validate my custom Oauth2 access token in server-side

How can I validate my custom Oauth2 access token in server-side ``` public class SimpleAuthorizationServerProvider : OAuthAuthorizationServerProvider { public override async Task GrantResourceOwnerC...

How to use OAuth2 in RestSharp

How to use OAuth2 in RestSharp After a couple of days sorting out OAuth2 at the server-end (Spring java) I started working on the client written in C#. I am using RestSharp to call my web API but I am...

9 May at 08:11

Google OAuthProvider for ServiceStack.net

Google OAuthProvider for ServiceStack.net I was trying to create a google oauthprovider with servicestack but I'm having a bit trouble. (I'm following google's description here [Using OAuth 2.0 for We...

Identity server is keep showing "Showing login: User is not authenticated" in /connect/authorize/callback

Identity server is keep showing "Showing login: User is not authenticated" in /connect/authorize/callback Using IdentityServer4, I'm implementing Code flow authorization on an existing system which su...

Identity Server(OAuth2) implementation with integration to legacy systems(Forms Auth, ADFS,AD)

Identity Server(OAuth2) implementation with integration to legacy systems(Forms Auth, ADFS,AD) We are currently building a RESTful API(.Net Core, [IdentityServer 4](https://github.com/IdentityServer/I...

ServiceStack OAuth Issue with Github

ServiceStack OAuth Issue with Github I'm using the dotnet core 3.1, latest version of ServiceStack and I'm trying to use Google, Microsoft, and Github OAuth with it. So far with Google and Microsoft, ...

10 Nov at 03:46

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

ASP.NET MVC 5 and WebApi 2 Authentication

ASP.NET MVC 5 and WebApi 2 Authentication I recently built an MVC 5 Web Site as a front end protoype and used Individual Accounts for authentication. I now need to build a WebApi2 backend that will se...

How do I configure ServiceStack.net to authenticate using the OAuthProvider against Google

How do I configure ServiceStack.net to authenticate using the OAuthProvider against Google I'd like to configure ServiceStack.net to authenticate using the OAuthProvider against Google. Here is my cur...

19 Aug at 19:54

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

How to implement oauth2 server in ASP.NET MVC 5 and WEB API 2

How to implement oauth2 server in ASP.NET MVC 5 and WEB API 2 First I'll sketch my project: For my internship I need to add functionality to an existing system. A 3rd party client must be able to acce...

Adding additional logic to Bearer authorization

Adding additional logic to Bearer authorization I am attempting to implement OWIN bearer token authorization, and based on [this article](http://bitoftech.net/2014/06/01/token-based-authentication-asp...

OWIN Bearer Token Authentication

OWIN Bearer Token Authentication I have some questions related to Bearer Token. In Owin you can protect a ticket `Protect(ticket)` like this: ``` ClaimsIdentity identity = new ClaimsIdentity(Startup.O...

Creating Custom AuthorizeAttribute in Web API (.Net Framework)

Creating Custom AuthorizeAttribute in Web API (.Net Framework) I'm using OAuth2.0 Owin (password grant) in my WebAPI.My initial token Response is like below ``` { "access_token": "_ramSlQYasdsRTWEWe...

DotNetOpenAuth not working with MVC 5 RC

DotNetOpenAuth not working with MVC 5 RC I have been working a lot with DotNetOpenAuth. First we used 5.0.0-alpha1 but we switched over to v4.0.30319 because we couldn't find what was causing our prob...

Using ServiceStack for custom JWT verification without user credentials

Using ServiceStack for custom JWT verification without user credentials I'm new to ServiceStack and using it to provide an endpoint that will receive incoming requests from a remote service. No end us...

4 Sep at 09:18

How to refresh token with Google API client?

How to refresh token with Google API client? I've been playing around with the Google Analytics API (V3) and have run into som errors. Firstly, everything is set up correct and worked with my testing ...

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

Google Drive Api - Custom IDataStore with Entity Framework

Google Drive Api - Custom IDataStore with Entity Framework I implemented my custom `IDataStore` so that I can store on my instead of the default implementation, which is saved on within %AppData%. ```...