custom-authentication

Custom AuthorizeAttribute with custom authentication

孤街浪徒 提交于 2019-12-03 12:09:10
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 Authentication, everything must be customized. I have set up the following in my web.config: <system.web> ... <authentication mode="None" /> </system.web> <system.webServer> <modules> ... <remove name="FormsAuthentication" /> ... </modules> </system.webServer> I have also a global filter: public class FilterConfig { public static void

How to get metadata out of AWS Cognito JWT to use it for the MongoDB Stitch Metadata Fields?

吃可爱长大的小学妹 提交于 2019-12-01 22:02:22
问题 I am using AWS Cognito as the custom authentication for my MongoDB Stitch app. I can successfully retrieve the JWT from AWS Cognito and login to MongoDB Stitch. I would like to store attributes in the JWT. I need help on how to get the JWT path to the metadata to put in MongoDB's Users -> Providers -> Metadata Fields. 来源: https://stackoverflow.com/questions/55667558/how-to-get-metadata-out-of-aws-cognito-jwt-to-use-it-for-the-mongodb-stitch-meta

Linking custom auth provider with Firebase

匆匆过客 提交于 2019-12-01 20:08:16
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 to pass the AuthCredential object to the signed-in user's linkWithCredential method but I don't find a custom AuthCredential. One way to link an unsupported provider custom token to an existing account is to get the Firebase account's user id and the unsupported provider user id and save a hash map that takes in the unsupported provider id and

AWS API Gateway Custom Authorizer AuthorizerConfigurationException

本秂侑毒 提交于 2019-12-01 03:45:59
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 functionality. I could see the logs in cloudwatch which had detailed prints from custom auth lambda function. After successful authentication, API Gateway pushed the record to my Kinesis stream However when I call the same API from Chrome Postman client, I get 500 Internal Server Error and response headers includes X-Cache → Error from cloudfront, x-amzn

Multiple Custom authentication requests to firebase failing

天涯浪子 提交于 2019-11-29 17:00:19
When trying to get multiple firebase references one after the other, only the last requests callbacks gets called. Below I am trying to get 3 firebase references for different data console.log('authenticating Users'); var firebaseRef1 = new Firebase('https://stckflw.firebaseio.com/Users'); firebaseRef1.authWithCustomToken('<token>',function(error, authData){ console.log('authentication callback for Users'); } ); console.log('authenticating Messages'); var firebaseRef2 = new Firebase('https://stckflw.firebaseio.com/Messages'); firebaseRef2.authWithCustomToken('<token>',function(error, authData)

using custom IPrincipal and IIdentity in MVC3

牧云@^-^@ 提交于 2019-11-28 04:44:45
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 stuffs public CustomIdentity(string name) { _name = name.Trim(); if(string.IsNullOrWhiteSpace(name)) return; _email = (connect to database and read email and other stuffs); } public string Name { get { return _name; } } public string Email { get { return _email; } } public string AuthenticationType { get { return "CustomIdentity"; } } public bool IsAuthenticated {

using custom IPrincipal and IIdentity in MVC3

久未见 提交于 2019-11-27 05:25:47
问题 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 stuffs public CustomIdentity(string name) { _name = name.Trim(); if(string.IsNullOrWhiteSpace(name)) return; _email = (connect to database and read email and other stuffs); } public string Name { get { return _name; } } public string Email { get { return _email; } }