Check if user already logged in okta on startup of website or application. so that we don't need to login again - asp.net-core

I have added one more button apart from regular login button, the button is sing in with okta. when clicked it challange and redirect to okta username and password after that my code execute and login. But i want to do something like if i am already login in okta and when i open my site it should directly log me in without clicking sing in with okta button. Is that possible ?

Related

can Xamarin.forms automatically check for login details before launching the screen?

So in my application on launch a login screen is shown, a user enters username and password, and if they close the application without logging out when they open it again they just press login within filling in the Username and password fields and it opens, so I want to ask is there a way so my application can check for the login details (saved in php) ? and if login details are valid it skips the login screen but if login details are not valid it takes the user to the login screen. is there a way I can implement it?

password reset in asp.net mvc app with ad b2c

I am not able to find proper documentation on how to get started with the scenarios below:
Forgot password. I have setup the reset password policy in Azure AD B2C and the user can click Forgot Password which redirects the user to a controller action in my app. But I'm not really sure what to do from here.
Reset password from user profile in my app. In my app, I would like the user to be able to click "Reset Password" which would redirect the user to having their password reset.
For both of the scenarios above, I would like Azure AD B2C to handle the password reset by asking the user for their email and then emailing them the password reset link and then handling the password reset appropriately. How can I do this?
There are two use cases for password reset:
If you click on the link in the signup / signin page, you get the error code AADB2C90118 which is returned to your application. Your application then needs to run a specific user flow that resets the password. Refer a simple ASP.NET sample that demonstrates the linking of the user flows.
If the user has already signed in, you can simply provide a link. This link invokes the password reset policy that is configured on the B2C side.

Bypass user login (VB.Net)

I have this application (Windows Form App) that require user to enter their Username and Password. Inside this application, there are shortcut for website and each of the website also require user to login first before they can use the website. But I want to bypass user when they click the shortcut for the website (if they already login for the application) where the login page will skipped and redirect user to the mainpage of the website. User will only required to login if they are accessing the website without using the application.
I used Process.Start() to run the website when the website shortcut is clicked. It open the website but redirect user to the login page. How do I bypass user credentials so that they will be able to login once (through the application) and can access all the website without do login again?
Edit : Is it possible if I use session inside my website login coding to redirect user to the main page? So it's like, when user login using the application, the website will automatically detect that the user already login, so user will be redirected to the main page of the website without going through the login page.
Give your user an API key that is stored in the user database table that is unique that changes when they login. Then in VB use Process.Start("https://example.com/login.php?api_key=" + 'add api_key retrieved from database on login) then in your PHP you check for the api_key as a login that will create the session for the logged in user.

how do i sign user out of my app?

I implementet Google+ Sign-In API in the root page of my app. It automatically signs in user if user is signed in to google, then API automatically signs him in to my app. The problem is that when user logs out of my app, he is redirected to root page which logs him back in, since he still is logged in to google.
You can see the whole code here: https://developers.google.com/+/web/signin/
wierd, they have "See also, signing the user out of your app."
link, but it's broken :(
Any ideas?
This is similar to this question:
Preventing automatic sign-in when using Google+ Sign-In
You could use a cookie that is set when the user is logged in on your site. If the user is logged in, indicated by the presence of the cookie, allow the user to automatically get redirected into your site. If the user is not logged in, require that the user click the sign-in button before you hide the button and redirect them to the signed-in experience. To log the user out, delete the cookie.

How to create popup window to login with linkedin in rails 3?

I have been facing this problem that i try to login to my website using linkedin, I am unable to do the following and don't know where to start eve,
when the user clicks on "log in via linkedin",
the user should get a linkedin login page(popup)
2.Once the user enters his login credentials and clicks to login the linkedin login page must be closed and my web page must shown to the user with the values if the login credentils are correct.
Please advise me how to go about.
How do i create popup upon clicking via linkedinlogin?
Thanks, Antony