Commit Graph

689 Commits

Author SHA1 Message Date
Troy Dai 3a5df89f1c Move a nullref check to base class 2016-08-26 08:56:48 -07:00
Troy Dai a79a0360c1 Update OpenIdConnectHandler 2016-08-26 08:56:48 -07:00
Troy Dai c5509fb594 Minor update in OpenIdConnectHandler and Options
1. Default post sign out uri to the root of the applciation;
2. Throw ArgumentNullException for null context in HandleSignOutAsync;
3. Guard null from Unprotected;
4. Clean up code
2016-08-26 08:56:48 -07:00
Troy Dai ed6984fab5 Update signed out redirect url in sample 2016-08-26 08:56:48 -07:00
Troy Dai fa0a68a847 Fix xml comments error 2016-08-26 08:48:27 -07:00
Troy Dai 8f5c7aef57 Update tests 2016-08-26 08:47:56 -07:00
Troy Dai 26956c5ce1 Update OIDC signout flow
OIDC signout should return to CallbackPath then locally redirect to AuthProperties.RedirectUri
2016-08-25 15:23:12 -07:00
Troy Dai 0d5482685b Update OpenIdConnect.AzureAdSample 2016-08-25 15:21:52 -07:00
Troy Dai 59a86c17e2 Update OpenIdConnectSample
1. Use bootstrap to enhance the view.
2. Html encoding
3. Improve readability
2016-08-24 14:28:31 -07:00
Troy Dai d887d74819 Update OpenIdConnectChallengeTests
1. Set header and status code in OnRedirectToIdentityProviderEventHandlesResponse
2. Move field to the top
2016-08-23 21:27:00 -07:00
Troy Dai c5c11e81b3 Split TestTransaction, add extension to TestServer 2016-08-23 09:05:17 -07:00
Troy Dai 562eb7054a Merge TestDefaultValues with TestServerBuilder 2016-08-23 09:05:17 -07:00
Troy Dai abc1b37ee1 Update OpenId Connect Challenge Tests
1. Expand the test coverage: add tests covers events work flow.
2. Move OpenID connect challenge tests to their own class.
3. Further refactory the test settings and utilities.
2016-08-23 09:05:17 -07:00
Troy Dai 62f0f6e857 HtmlEncode all user input in Azure OpenID sample 2016-08-22 22:30:11 -07:00
Troy Dai 7ea76f5e54 Update OpenID connect Azure sample 2016-08-22 22:27:37 -07:00
Troy Dai 91e5de4d69 Add HTML encoding to OpenIdConnect AzureSample 2016-08-22 22:21:07 -07:00
Troy Dai 6ca981e4df Refine OIDC sample
1. Add signout remote scenario
2. Use bootstrap to enhance the view
3. Improve readability
2016-08-22 22:21:07 -07:00
Hao Kung d291bb7c24 Add AuthZHandlerContextFactory 2016-08-19 17:04:09 -07:00
Hao Kung 6f15d616a8 Add IAuthorizationEvaluator 2016-08-19 17:04:09 -07:00
Troy Dai 936a4f6092 Update OpenId Connect Configuration tests
1. Move configuration related tests to their own class;
2. Add tests to cover missing options scenarios;
3. Add TestDefaultValues class for default values used in OpenId connect
tests.
2016-08-18 09:51:40 -07:00
Troy Dai fb0a577dd1 Add comments to CookieAuthenticationHandler 2016-08-11 14:03:17 -07:00
Troy Dai 26a7c7016d Minor updates to CookieAuthenticationHandler and its tests
1. Remove unnecessary variable declaration.
2. Update test name to a more accurate description.
2016-08-11 10:15:07 -07:00
Troy Dai 4600451dc6 Allow absolute uri in authentication properties for cookie auth redirect 2016-08-11 08:48:47 -07:00
Troy Dai 97afe4acc8 Adjust the redirect URI precedence in cookie auth 2016-08-10 15:59:39 -07:00
Troy Dai 1ef62a40b3 Add test for CookieAuthentication 2016-08-10 15:59:39 -07:00
Troy Dai 6a9f1f9887 Honor AuthenticationProperties.RedirectUri in CookieAuthenticationHandler 2016-08-10 15:59:39 -07:00
Pranav K 2bc207fa8c Switching to dotnet.myget.org feed 2016-08-09 15:11:18 -07:00
Troy Dai 74e5777435 Update comments 2016-08-05 22:00:37 -07:00
Troy Dai a344684d06 Use HandleAuthenticateOnceSafeAsync in Cookie auth 2016-08-05 15:27:37 -07:00
Troy Dai 926c7fab4b Use async-wait pattern in HandleAuthenticateOnceSafeAsync 2016-08-05 14:34:36 -07:00
Troy Dai 0314632696 JwtBearer Token: Catch exception during unauthorized flow 2016-08-05 12:11:33 -07:00
Troy Dai 5231c5a853 Merge pull request #936 from cwe1ss/patch-1
Typo "Failed to retrived" -> "Failed to retrieve"
2016-08-04 09:51:54 -07:00
Christian Weiss 706566e253 Typo "Failed to retrived" -> "Failed to retrieve" 2016-08-04 18:02:09 +02:00
BrennanConroy 882e790bff Update .travis.yml 2016-08-02 13:05:55 -07:00
Hao Kung 137e18f39d Add test 2016-07-29 13:26:36 -07:00
Hao Kung 2a6ab2be8c Add UpdateTokenValue API 2016-07-29 13:26:25 -07:00
Ryan Brandenburg c16fc06cb9 Modify warning about policy behavior (#924) 2016-07-28 16:55:08 -07:00
Troy Dai 763df65c14 Revise if-else order in RemoteAuthenticateHandler 2016-07-26 16:27:28 -07:00
Troy Dai 0e855b25a8 Update Google and Microsoft Account Handler exception message 2016-07-26 14:16:16 -07:00
Troy Dai 0d216d726a Minor fixes in RemoteAuthenticationHandler and FacebookHandler 2016-07-26 13:58:07 -07:00
Troy Dai 1c17bddc02 Update HandleRemoteCallbackAsync readability 2016-07-26 10:30:50 -07:00
Troy Dai 210c4b2061 Fix incorrect exception messages 2016-07-26 10:30:50 -07:00
Troy Dai 6f46bc94f8 Sort using statements 2016-07-26 10:30:50 -07:00
Troy Dai 5211f22f44 Update comment on HandleRemoteAuthenticateAsync 2016-07-26 10:30:50 -07:00
Troy Dai cd9e9fa498 Update comment on HandleRemoteAuthenticateAsync 2016-07-26 10:30:50 -07:00
Troy Dai 5de4816f59 Update the RemoteAuthenticationHandler error handling
1. Exeption will be still thrown from CreateTicketAsync to avoid breaking
change.
2. OAuthHandler won't try to capture the exception.
3. OAuthHandler will check if the AuthenticateTicket is null.
4. RemoteAuthenticationHandler's error handling flow is improved to cover
the exception thrown from HandleRemoteAuthenticateAsync. The exeption
thrown from it will go throw the user error handling logic, too.
2016-07-26 10:30:50 -07:00
Troy Dai 988bcc81ee Update comments for HandleRemoteAuthenticateAsync method 2016-07-26 10:30:50 -07:00
Troy Dai 312edaafb4 Handle back channel failure gracefully
1. Check the response states code. If it is out of 2XX range, compose a
readable message and throw in an exception.
2. Capture the exception in HandleRemoteAuthenticateAsync and translate
it into AuthenticateResult.
2016-07-26 10:30:50 -07:00
Troy Dai ecb3b90984 Undo change to the GoogleDefaults 2016-07-26 09:19:42 -07:00
Troy Dai eabdd45816 Improve code readability for Authentication.Google 2016-07-26 09:13:18 -07:00