I added a bunch of courses to PluralSight’s security library – check them out!
-
Recent Posts
Categories
- .NET Security (95)
- ASP.NET (163)
- ASP.NET Core (27)
- AuthorizationServer (33)
- Azure (29)
- Conferences & Training (40)
- IdentityModel (347)
- IdentityServer (205)
- Katana (46)
- OAuth (163)
- OpenID Connect (94)
- OWIN (45)
- Photography (14)
- PolicyServer (3)
- Resources (1)
- Uncategorized (625)
- WCF (109)
- WebAPI (223)
Tweets
Tweets by leastprivilegeFeed
Archives
- May 2021
- October 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- September 2019
- August 2019
- July 2019
- June 2019
- April 2019
- February 2019
- January 2019
- December 2018
- July 2018
- June 2018
- May 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- July 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
I’ve watched all your PluralSight courses. Great job, thanks.
When are you going have a course on Identity and Access Control for Web APIs?
– Mike
Thanks! After V2 is released. End of year.
I can’t wait for that video! I’m currently having to write a Web API that requires some kind of Identity and Access Control. Also tying it into our AD system here.
Just finished watching your pluralsight videos – they helped me out massively.
I’m looking at building my own IP-STS for an enterprise project in the UK. Are there any tips you can give or pitfalls you can advise me of (other than the standard security related problems).
Thanks very much.
Well – writing an STS is very hard work. Check out IdentityServer – or a consultant ;)
good luck!
Hi Dominick! I’ve read a lot of your materials – seen all of the pluralsight stuff – all of which is very useful. One of the best features of WIF is what I perceive to be an incremental technology adoptance pattern. You don’t have to go full on federation to start taking advantage of claims – and you can implement more as you fully understand it. One thing that is concerning – is I do see it mentioned a lot from independent sources that writing your own STS is very, very hard. If an STS backed by several different authentication stores is required (including non-AD) – if you already have an RP-FP-IDp scenario working – if you already have a system for provisioning users, provisioning RP’s, if you already have fault tolerance and load balancing worked out – if saml11 is more than ok for the foreseeable future for a given environment – if you have all the different levels of encryption worked out – and things seem to be working really well – is there some stealth issue or major concern that is not mentioned in any of the standard materials that we should be looking out for? Something that is a deal breaker and is a real gotcha for any developer who dares to spin his own sts?
Well – just keep in mind that you are writing security software – and big parts of your application infrastructure depends on it. Then you’ll be fine ;)
Hello Dominick,
Maybe you could suggest or advise the best route to follow. I would like to know when using WCF and Web API what approach should i follow in terms of security. We have two ways in which our methods would be called, 1. Via the www and 2. Intranet. (Within the domain).
Thanks
Xen
Your Pluralsight videos are great. I’ve watched them all :-). Have you written anything about use cases where several users can read the same kind of data (like a list of documents), but access to each document is restricted to a subset of users. I don’t see how one can get this kind of access control separated from the business logic, like annotating a method in the controller using ClaimsPrincipalPermission annotation for instance.
Attributes don’t work really well here. You need to do the access checks once you have all necessary data – e.g. inside the method.
I have a Pluralsight subscription and am actively absorbing as much of your material as possible in order to use it in an enterprise scenario. I notice there are no videos with your identity server in the title. Do I need the idsrv STS to successfully federate my web API app?
For Web API authentication you almost certainly want something like OAuth2. IdentityServer or even better AuthorizationServer would fill that gap.
Course will be available next week or so..fyi.
Sir,
I have taken all of your courses thus far and I am currently in the middle of the ASP.NET Web API v2 Security course. I have learned a considerable amount from your courses and they have helped me considerably in my own development work
I have a question about the ASP.NET Web API course. In the demo for client certificates during module 4 (Classic Authentication and Katana Authentication Middleware) you demonstrate a considerable number of options on your extension method to execute your certificate middleware. However, I never see you actually show the extension method code. My company does not give me a full subscription so I cannot download the code either.
I was curious to know if there was an easy way I could see that extension method simply so I can understand how you are setting things relating to certificate validation. Like the option to not check Revocation, or the separate custom ThinkTecture options where you can set your own Validator function. I am just not getting how your extension method is gluing the Startup parameters to the Cert Authentication Handler.
Thanks for all the good work you do. I have learned a ton from your courses.
Check the source code here (not sure though this is exactly the same as in the course – it’s been a while) –
https://github.com/thinktecture/Thinktecture.IdentityModel/tree/master/source/Thinktecture.IdentityModel.Owin.ClientCertificates
Cool!, that is exactly what I needed. Thanks for taking the time to send that to me. I greatly appreciate it.
Once again, thanks for the great course.
This course is missing on the list: https://app.pluralsight.com/library/courses/building-securing-restful-api-aspdotnet/table-of-contents
Any chance you will be updating courses for .Net Core? Are there any out there now that you recommend?
I don’t have anything in the works right now.
Have a look here
https://identityserver4.readthedocs.io/en/release/misc/videos.html
https://identityserver4.readthedocs.io/en/release/misc/training.html
I’m working on ASP.NET Web API. I want to create self signed certificate that works both on Chrome and IE. I tried creating certificate using IIS and bind it with default website but it didn’t work. While researching I got to know that CN (common name) of certificate should the host name. so I tried the following way, using make cert
makecert.exe -r -n “CN=DevRoot” -pe -sv DevRoot.pvk -a sha1 -len 2048 -b 01/21/2010 -e 01/21/2030 -cy authority DevRoot.cer pvk2pfx.exe -pvk DevRoot.pvk -spc DevRoot.cer -pfx DevRoot.pfx
Create root certificate and then
makecert.exe -iv DevRoot.pvk -ic DevRoot.cer -n “CN=%1” -pe -sv %1.pvk -a sha1 -len 2048 -b 01/21/2010 -e 01/21/2020 -sky exchange %1.cer -eku 1.3.6.1.5.5.7.3.1 pvk2pfx.exe -pvk %1.pvk -spc %1.cer -pfx %1.pfx
passing in “web.local” as parameter. I changed my host file and make the entry “127.0.0.1 web.local”. Now the url https://web.local works in IE and open default website but chrome is throwing a warning with error “ERR_CERT_COMMON_NAME_INVALID” and following error.
This server could not prove that it is web.local; its security certificate is from [missing_subjectAltName]. This may be caused by a misconfiguration or an attacker intercepting your connection
Is there any plan to update the JWT/Oauth2/OIDC course with modern OIDC developments? The OAUTH2 sections of the course are outstanding, but given the course was produced before the final OIDC specs were launched (Feb 2014 according to http://openid.net/connect/faq/) there’s definitely a sense that the course content on OIDC could be more robust.
Thanks – no – no plans.
But we do regular trainings – see here: https://identityserver.io/training
Hi Dominick, I subscribed as a low level patreon for IdentityServer and have enjoyed your Pluralsight courses. I was wondering – could you do a Pluralsight course on IdentityServer4 or some videos on what’s going on in the code? I’ve debugged through it quite a bit while implementing logons with client webapps in my project, and still don’t understand a few things like server side cookie handling.
Hi
thanks!
I have not planned any video training anytime soon. It’s very time consuming to record those videos.
wrt cookies – I don’t think we do anything special with cookies – we just use the standard ASP.NET Core cookie facilities. If you have a specific technical question – the issue tracker on github might be the best place to ask.
When are you going have a course on IdentityServer 4 and Access Control for Web APIs?
I have no plans right now – but here are some options:
https://identityserver4.readthedocs.io/en/release/misc/training.html
Awesome course! Any plans to do the similar Course in Asp.Net Core?
Thanks.
No – they already exist.
Hi Dominick .. your OAuth 2.0 and OpenID Connect lectures are spot on! Just starting the Pluralsight course now.
I have a question i could really use some help with. See below. Thx in advance if you are able to comment.
I have a mobile application (xamarin droid/ios) that is integrated with a .net Core 2.2 based webAPI implementation of services. The App authentication is currently using id/password login using asp.net core identity services and JWT.
I need to add “sign-in with” Google/Facebook and Twitter using OAuth 2.0. I’m trying to find a good example as a reference implementation of what i am trying to do here. Basically i’m trying to understand how i can use the token returned from google to authorize access to my apps API? Every demo/example i have found seems to end by showing that it can be done??? but i’ve not found a good explanation of how to go about it. Do i somehow register the google/facebook etc. token/user in my AspNetUsers, AspNetUserLogins, AspNetUserTokens tables?
Does Xamarin.Auth help with this process? Thanks if you can help clear my mis-understanding.
Early stages of development with our company so our company website is placeholder only.
I would use IdentityServer as a federation gateway for both username/password and Google etc logins.
You don’t use the token from Google to access your own APIs – you just use Google for login. You issue your own tokens for your APIs.
https://identityserver4.readthedocs.io/en/latest/topics/federation_gateway.html
Dominick … this looks to be exactly what i was searching for. Thank you for taking the time to point me in the right direction. I’ll update this post once i implement using IdentityServer as my federation gateway.