authentication

Has azure user ids changed their format?

谁说胖子不能爱 提交于 2021-01-29 08:55:19
问题 Good evening ppl at Microsoft! I have an Mobile App Service at Microsoft Azure Located at South Central US named CeneamApp. My backend is configured in a way so that my user can access only the data they capture, by making use of stable user ids. so I had followed Adrian Hall book to create an a user id (https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter2/authorization/)with the following format sid:{identifier}as described here: (https://github.com/Azure/azure

How to log out using PKCE authorization flow?

不问归期 提交于 2021-01-29 08:40:37
问题 If I have an app and an api . If the app logs in through authorization server and sends the authorization: Bearer xxx header with each request, the api can verify the token locally. When the user logs out (through the auth server), but the token has not yet expired if someone retrieves this token they will be able to make requests (if the authentication of the token is done locally on the server), is that correct? If thats the case, why is such a logout flow considered secure? Edit:

How do we click the IE Settings button using selenium java?

时间秒杀一切 提交于 2021-01-29 08:32:34
问题 Im working on an application in IE that requires the authentication pop-up always to be displayed. For this, as a prerequisite, we need to manually set the below every time I initiate my test: Settings > Internet Options > Security > Custom Level > User authentication = Prompt for username password. Is there a way to automate this setting change? Tried searching the usage of Robot class to click on the Settings icon. I did not find any (We are using this robot class to enter the credentials -

How to read jwt token from external API to authenticate user and insert the user name and email id in the database

十年热恋 提交于 2021-01-29 08:07:26
问题 I have gone through many articles and SO Q&A to find the solution to my problem.Below is my requirement As soon as the user browses angular application ,I need to authenticate and get user name and email. The authentication is achieved via external system basically an Api which returns jwt token and after decoded it we will get the info in the form of json. My question is where do I call the api either in angular application(front end) or asp.net core(back end). I am calling at asp.net core

Generate login cookie in shell (using curl?)

三世轮回 提交于 2021-01-29 07:30:46
问题 I would like to generate a login cookie in the shell, before launching my browser, such that I am already logged into certain websites. Currently I am trying this with my own nextcloud server using the following command curl --cookie test.txt --cookie-jar test.txt \ -d "user=***name***" \ -d "password=***password***" \ <my nextcloud server>/index.php/login getting a cookie that looks like the following. However, placing this among my other cookies does not allow me to login. # Netscape HTTP

SignalR hub Authorize attribute doesn't work

守給你的承諾、 提交于 2021-01-29 07:25:53
问题 I'm using SignalR to send notification to angular. But i want to make it user specific. The user is logged in with azure ad. And i have a [Authorize] on the hub but the authorisation fails. But in my controller it works fine. What i have tried so far. I tried this services.AddAuthentication from the microsoft site. https://docs.microsoft.com/en-us/aspnet/core/signalr/authn-and-authz?view=aspnetcore-2.2 But then my controller can't verify the token because the token isn't in the url but in the

ES6 imports for JWT

こ雲淡風輕ζ 提交于 2021-01-29 07:17:59
问题 I'm making a nodeJS web app and I'm using JWT for authentication. All my work is in ES6 modules and I wanted to import JWT in the same way, but apparently it isn't yet supported by the package. I can't use the older require() format as it throws an error since I've set it to modules in my package.json. Is there a way around this or do I have to find another library altogether? Edit: I have fixed the issue with destructuring but it's still not working. Apparently it can't find the module at

How can I programatically verify a password in newer versions of MySQL?

旧城冷巷雨未停 提交于 2021-01-29 07:01:10
问题 In newer versions of MySQL there is a pluggable authentication system. Previously there was the PASSWORD function that could generate the hash found in user.authentication_string , but that function has been removed in later versions (8.0.11 AFAICT) of MySQL. If I would like to verify a users password (without actually logging in - since a user may not be able to log in from the host that I'm on), is there a way to do that using modern MySQL? 回答1: If I would like to verify a users password

Using JWT for Authorization in Node

[亡魂溺海] 提交于 2021-01-29 07:01:05
问题 So I've been following a Udemy course that uses POSTMAN to teach authentication, but I have been wonder how it works in an actual app that uses the browser. We are taught to store the JWT token with res.header('x-auth-token', token). And then when we try to access a route that is protected, we manually add the token in POSTMAN header and get the token with req.header('x-auth-token') on the server and verify the token. But in a real app, I logged in using the browser and it did indeed set the

¿How do i redirect to the same page affter login?

好久不见. 提交于 2021-01-29 06:55:47
问题 I am redesigning a page for a company and an event has been created where the user has to log in. Where it says: Register as an affiliate by logging in with your username and password here (in Spanish) But the link that shows the link is hidden with a WordPress snippet with the following script to do the login: add_shortcode( 'inscripcion', 'bp_contenido_inscripcion' ); function bp_contenido_inscripcion( $atts, $content = null ) { if ( is_user_logged_in() && !is_null( $content ) && !is_feed()