Questions tagged [custom-authentication]

176 questions
52
votes
7 answers

AWS API Gateway custom Authorizer strange showing error

Here is the context: I set up a resource in the API gateway. /user/company This resource have 2 methods. Get and POST. I have configured a custom Authorizer for this resource. The problem: I can call the GET method by sending right authorization…
Arman Fatahi
  • 2,635
  • 3
  • 24
  • 37
21
votes
1 answer

using custom IPrincipal and IIdentity in MVC3

I create my own IPrincipal and IIdentity implementation as shown below: [ComVisible(true)] [Serializable] public sealed class CustomIdentity : IIdentity { private readonly string _name; private readonly string _email; // and other…
17
votes
5 answers

AWS API Gateway Custom Authorizer AuthorizerConfigurationException

For a Kinesis stream, I created a proxy API using AWS API Gateway. I added a custom authorizer using python Lambda for the proxy. After publish of lambda function and deploy of API, I was able to successfully test the API using Gateway Test…
14
votes
1 answer

Custom authentication asp.net core web api

I want to use a secret key (api key) authorization asp.net core web api. The key will be passed in Authorization header like given below, ex. Authorization keytype;h43484344343bbhfdjfdfhj34343 I want to write a middleware to read this key from…
blue
  • 833
  • 2
  • 12
  • 39
12
votes
4 answers

Overriden HandleUnauthorizedAsync not being called .NET Core

I have implemented my own custom authentication middleware and handler, and configured them in the app startup. This is all working fine. In my custom auth handler where I have overriden HandleAuthenticateAsync() to do my own custom auth, I have…
Tophat Gordon
  • 699
  • 2
  • 9
  • 22
11
votes
3 answers

Custom AuthorizeAttribute with custom authentication

I am using ASP.NET MVC 4 Web application as a front-end for some WCF services. All the user log in/log out and session control is done on the back-end. MVC app should only store a single cookie with session ID. My client does not allow to use Forms…
JustAMartin
  • 13,165
  • 18
  • 99
  • 183
10
votes
2 answers

Linking custom auth provider with Firebase

I read that with Firebase I can allow users to sign in to my app using multiple authentication providers by linking auth provider credentials to an existing user account. Is possible linking custom auth provider such as Linkedin? I read that I need…
9
votes
1 answer

Asp.Net Web Api Token Based Authorization WITHOUT OWIN and AspNet.Identity

I am planning to use the codes below for my web api security but i am not sure that is enough safe and logical way. I don't want to use OWIN and AspNet.Identity because it's very complicated for me and i don't understand completely and I don't know…
8
votes
2 answers

AWS API Gateway Custom Authorizer log

How do get logging from custom authorizer lambda function in API Gateway? I do not want to enable logging for API. I need logging from authorizer lambda function. I use a python lambda function and have prints in the code. I want to view the prints…
7
votes
1 answer

Change my AWS API Gateway Custom Authorizer per stage

I currently have an API going through our API Gateway, which has multiple Custom Authorizers attached - LiveAuthorizer and TestAuthorizer. I'd like to change my custom authorizer based on the stage being accessed, just like a stage variable. If we…
7
votes
2 answers

Spring - Call custom-authentication-provider from a controller

I have a custom-authentication-provider defined in my Spring Security configuration. This class implements AuthenticationProvider, and I can successfully log in using the form defined on my page. The issue is I want to call this class not just on…
David Buckley
  • 981
  • 7
  • 17
  • 30
7
votes
2 answers

Set HttpContext.User for the session

I've implemented custom authentication in ASP.NET MVC. If a valid user tries to login, I set the HttpContext.User = user in the Logon method of the AccountController. But it remains there for only that request. How can I set it for the session? I…
Abdulsattar Mohammed
  • 10,154
  • 13
  • 52
  • 66
6
votes
2 answers

How to call the authenticate() method of Custom written AuthenticationBackend of django in views.py?

I am working on a Django project in which I have defined a custom user model for which I have required to write the custom authentication method, by following the documentation I have written it like following But I have a problem in calling it in…
RIO
  • 148
  • 1
  • 8
6
votes
3 answers

How to implement Firebase custom authentication backend?

I want custom firebase authentication where a user manages the roles of subordinate users. I need guidance on understanding on how to implement my own backend authentication system. Everywhere the documentation keeps mentioning that 'send the…
6
votes
1 answer

How to setup a custom authentication on asp.net mvc identity?

What I Need?! I have an ASP.NET identity system setup and running with external logins. For whatever reason i need to setup a custom authentication after the ASP.NET identity authentication. Let me explain how? Lets say I have three pages for the…
1
2 3
11 12