custom-authentication

right way to have role based custom auth query database on every request asp.net mvc

戏子无情 提交于 2019-12-19 09:47:13
问题 This may be a slightly ignorant question but Im new to mvc so Im sorry! I studied the nerd dinner auth model but In my app I have a complicated role based authentication. So What I do is this: void MvcApplication_PostAuthenticateRequest(object sender, EventArgs e) { HttpCookie authCookie = HttpContext.Current.Request .Cookies[FormsAuthentication.FormsCookieName]; if (authCookie != null) { string encTicket = authCookie.Value; if (!String.IsNullOrEmpty(encTicket)) { FormsAuthenticationTicket

Multiple Custom authentication requests to firebase failing

青春壹個敷衍的年華 提交于 2019-12-18 09:33:01
问题 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:/

AWS API Gateway Custom Authorizer AuthorizerConfigurationException

爱⌒轻易说出口 提交于 2019-12-12 07:27:05
问题 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

Impersonation with IIS7, WCF Rest, custom authentication module

喜欢而已 提交于 2019-12-12 04:44:08
问题 So I am working on setting up a WCF service, hosted in iis7. The service is a REST service. Up till now our requirements for authentication were that only domain accounts were going to connect to the service. We are using basic authentication and using impersonation for making calls through our business layer to our DB. This is all working well. Now we have the need to allow non-domain accounts to use our service. Due to somethings with IIS I implemented this (http://custombasicauth.codeplex

How to call SSRS Rest-Api V1.0 with custom security implemented (NOT SOAP)

蹲街弑〆低调 提交于 2019-12-11 17:48:38
问题 I have implemented the custom security on my reporting services 2016 and it displays the login page once the URL for reporting services is typed on browser URL bar (either reports or reportserver) I am using the following code to pass the Credentials when i use the code WITHOUT my security extension it works and looks like this ICredentials _executionCredentials; CredentialCache myCache = new CredentialCache(); Uri reportServerUri = new Uri(ReportServerUrl); myCache.Add(new Uri

How to implement Firebase custom authentication backend?

[亡魂溺海] 提交于 2019-12-10 23:37:52
问题 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 username and password to your backend that will generate a custom token'. What is this backend? where do I pursue this? My knowledge domain is firebase, firebase functions, angular 2/4, ionic2 for this discussion... thanks 回答1: You will have to send the

Azure MobileApp custom authentication, refresh token

情到浓时终转凉″ 提交于 2019-12-07 17:14:02
问题 I need my app to support custom authentication against our private database, and following the advices on Adrian Hall book here https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter2/custom/ I got no problem authenticating my users. The problem comes when I need to refresh the access token. As I'm forced to stay with custom auth, I have the following questions: 1) Should I call MobileServicesClient.RefreshUserAsync(), and if so, what kind of endpoint should I

Symfony2 custom authentication provider bad credentials

只愿长相守 提交于 2019-12-06 14:51:32
问题 I'm implementing a custom authentication provider for using an external api following roughly the cookbook on the symfony website. It works almost everything correctly, the listener listens the login form properly, then it calls the authenticate function which returns the authenticated token, the problem is that even if i set a authenticated token to the securityContextInterface, the system returns to the login page with wrong credentials. Under the code i've used What could it be? security

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

你说的曾经没有我的故事 提交于 2019-12-05 06:00:19
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 users to view on my application, Page A,B,C. Who can view Page A? Any anonymous user can view page A. Who can view Page A & B? Any user who have created an account either with his/her email & password or with external logins. Who can view Page A,B & C? Here is the place i want to set custom authentication. Any user who have created an account either

Symfony2 custom authentication provider bad credentials

我与影子孤独终老i 提交于 2019-12-04 21:05:48
I'm implementing a custom authentication provider for using an external api following roughly the cookbook on the symfony website. It works almost everything correctly, the listener listens the login form properly, then it calls the authenticate function which returns the authenticated token, the problem is that even if i set a authenticated token to the securityContextInterface, the system returns to the login page with wrong credentials. Under the code i've used What could it be? security.yml firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/app