Authentication and Authorization with Okta in .NET 6 Blazor Server

  Рет қаралды 14,433

Code with Julian

Code with Julian

Күн бұрын

Пікірлер: 37
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
Hey wonderful human beings! Don't forget to like this video if you found it helpful 😎 Thanks!
@Bigbacon
@Bigbacon Жыл бұрын
thank you for this video! Okta's example on line is .Net 3.1 and different than 6+
@philipquarles4679
@philipquarles4679 7 ай бұрын
Very well explained and easy to follow. Thank you.
@jd_27
@jd_27 Жыл бұрын
Thank you very much. Really enjoyed this tutorial
@ahmadalmasri4416
@ahmadalmasri4416 10 ай бұрын
impressive tutorial, thank you Julian
@GuildOfCalamity
@GuildOfCalamity 2 жыл бұрын
Yay, new video!
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
Yes! Hope it's been helpful!
@bobo1793
@bobo1793 2 жыл бұрын
Hello Julian, great tutorial session! I had a few quick questions if you don't mind: 1. How do you handle session duration/lifetime? An issue I've found is that the token might expire but the middleware doesn't do anything about it, as the session is not tied to the token in any way. UseTokenLifetime seems to do nothing for it. 2. Do you think it might have anything to do with the order of the function calls between .AddOpenIdConnect and .AddCookie? 3. Do you find Controller usage imperative? I've been trying to think of a more MVVM solution but can't find any where you can have a common controller for the logout common button in the header. Thanks a lot!
@srinivasanhariharan6489
@srinivasanhariharan6489 Ай бұрын
Can you provide the same example with .net8. If you feel, there is no change, then please say, no change. we will use this step to implement.
@kjhunkler
@kjhunkler 2 жыл бұрын
Thanks Julian! Great tutorial. I fixed the "Unknown Location" error I was getting on Okta redirect by adding 2 more lines in the oidOptions: oidOptions.CorrelationCookie.SameSite = SameSiteMode.Unspecified; oidOptions.NonceCookie.SameSite = SameSiteMode.Unspecified; Hope this helps anyone with the same error.
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
Thanks! Nice spot!
@eduardrivas6964
@eduardrivas6964 7 ай бұрын
Curious, I haven't ever used a service that implemented Okta. Why are you suggesting it? I mean, is not popular, do you have any tutorial for Google OAuth?
@mohammadNadeem-i6g
@mohammadNadeem-i6g 10 ай бұрын
Hey Julian, How we can do the single sign on (SSO) using okta in dotnet core , Thank you
@dotnetdevni
@dotnetdevni 2 жыл бұрын
Does okta honour authoriseview etc and all and does it provide an in app ui for managing user profiles? So they can reset passwords and such
@jayakumar2927
@jayakumar2927 10 ай бұрын
Good one useful. Saml also as well
@DanielTames
@DanielTames 2 жыл бұрын
thanks for the content man!
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
Always a pleasure!
@PelFox
@PelFox 2 жыл бұрын
Hi, I'm using an IdentityServer setup for SSO and followed these steps on how to configure the Blazor side. It works but I have some issues with the log out. I get logged out but redirected back to start page which logs me back in automatically. I have authorize requirement for all my pages. If I clear the cookies manually and refresh I get redirected and have to log in using my email/password. But the log out clears the cookie and then adds them directly without me having to enter my credentials, which seems odd. Any info is helpful :)
@nezqwe4818
@nezqwe4818 11 ай бұрын
hi, my @attribute [Authorize] isnt working correctly on a page. if I go do that page, it just directly redirect me to login via okta. I want it to show the stuff on tag we put in app. How do i do this?
@FragrantVagrant69
@FragrantVagrant69 2 жыл бұрын
Thanks for this. Any chance of covering refresh tokens with Okta in dotnet 6?
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
Hi yeah refresh tokens will be covered in the next video.
@FragrantVagrant69
@FragrantVagrant69 2 жыл бұрын
@@CodeWithJulian Amazing, thank you! Trying to get refresh tokens working in Blazor Webassembly but have been struggling.
@edafeclintiduh3754
@edafeclintiduh3754 2 жыл бұрын
Hello Julian, Great tutorial sessions you have here. Can you create a tutorial similar to this but for Blazor WASM using OKTA in .NET 6? I have implemented several approaches towards this goal but it doesn't work for me. The server side solution works, but it doesn't CDN services, which is why the WASM is important for me.
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
Hi thanks for feedback! I'll add your suggestion to the backlog, thank you! In the meantime, have you tried their website/yt channel ? They have exactly what you're asking. If you google 'okta blazor wasm', their post should be the first.
@edafeclintiduh3754
@edafeclintiduh3754 2 жыл бұрын
@@CodeWithJulian Hi, Yes you are correct I tried out the solution provided by Heather Downing, but it didn’t work for me. I got redirected to the OKTA login window but my authentication wasn’t successful and I was not able to see the CLAIMS page with all the details for a successful authorization. I got this error message “There was an error trying to log you in” I will wait for your solution once you are able to deliver it and thanks for the shared resource.
@priyajeth
@priyajeth 6 ай бұрын
The access token is null. How do I fix this?
@comroec
@comroec 2 жыл бұрын
tnx bro
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
You're welcome!
@majormartintibor
@majormartintibor Жыл бұрын
I triple checked everything, yet I get a 400 Bad Request from Okta when clicking on login. "Your request resulted in an error. The 'redirect_uri' parameter must be a Login redirect URI in the client app settings:" "Identity Provider: Unknown, Error Code: invalid_request"
@majormartintibor
@majormartintibor Жыл бұрын
Nevermind, the issue was, that in Okta I had http instead of https. Works now.
@johncarruyo8716
@johncarruyo8716 2 жыл бұрын
I'm getting the following error after following the tutorial InvalidOperationException: Provide Authority, MetadataAddress, Configuration, or ConfigurationManager to OpenIdConnectOptions Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions.Validate()
@johncarruyo8716
@johncarruyo8716 2 жыл бұрын
nevermind. I figured it out.
@CodeWithJulian
@CodeWithJulian 2 жыл бұрын
Nice one! 👍
@acousticnirvana539
@acousticnirvana539 Жыл бұрын
I am gwtting the same error, what was the issue?
Coding Short: Using Bearer Tokens in .NET 8 Identity
14:31
Shawn Wildermuth
Рет қаралды 29 М.
.Net Core Web API Azure AD Authentication and Authorization
28:20
AzureTeach•Net
Рет қаралды 75 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 37 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 184 МЛН
Authentication and Authorization Setup with Okta
37:00
CodeDunks
Рет қаралды 47 М.
Implementing JWT Authentication in ASP.NET Core
23:51
Nick Chapsas
Рет қаралды 42 М.
An Illustrated Guide to OAuth and OpenID Connect
16:36
OktaDev
Рет қаралды 615 М.
How To Add Google Authentication To Blazor SSR
24:23
Codewrinkles
Рет қаралды 4,4 М.
.NET 6 Web API Authentication | Minimal API & Swagger (CRUD)
45:34
Code with Julian
Рет қаралды 78 М.
SIMPLEST Blazor Authentication And Authorization Tutorial
23:44
Just Blazor Programming
Рет қаралды 18 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 37 МЛН