Matt Gibson
edd4bc2623
Add disable send policy ( #1130 )
...
* Add Disable Send policy
* Test DisableSend policy
* PR Review
* Update tests for using CurrentContext
This required making an interface for CurrentContext and mocking out
the members used. The interface can be expanded as needed for tests.
I moved CurrentContext to a folder, which changes the namespace
and causes a lot of file touches, but most are just adding a reference
* Fix failing test
* Update exemption to include all exempt users
* Move all CurrentContext usages to ICurrentContext
* PR review. Match messaging with Web
2021-02-04 12:54:21 -06:00
Chad Scharf
99b95b5330
Fix safari sso header size ( #1065 )
...
* Safari SSO header size fix - in progress
* Cleanup of memoryCacheTicketStore
* Redis cache ticket store + registration
* Revert some unecessary changes
* temp - distributed cookie: idsrv.external
* Ticket data cached storage added
* OIDC working w/ substantially reduced cookie size
* Added distributed cache cookie manager
* Removed hybrid OIDC flow
* Enable self-hosted folks to use Redis for SSO
* Also allow self-hosted to use Redis cont...
2021-01-11 11:03:46 -05:00
Kyle Spearrin
82b6216e95
SetIdentityServerOrigin for all non-dev ( #925 )
2020-09-09 14:47:52 -04:00
Kyle Spearrin
1c8744e4eb
UseDeveloperExceptionPage only on dev
2020-09-04 12:32:18 -04:00
Kyle Spearrin
ff4a025984
change response mode to form_post ( #908 )
2020-09-03 14:17:19 -04:00
Kyle Spearrin
44e886ae44
debugging
2020-09-01 11:39:06 -04:00
Kyle Spearrin
ba84c59b5d
custom DiscoveryResponseGenerator and helpers
2020-09-01 07:38:36 -04:00
Kyle Spearrin
3ad1672f8a
revert Authority to InternalSso
2020-08-31 21:03:33 -04:00
Kyle Spearrin
1f086a1193
get rid of SetIdentityServerOrigin
2020-08-31 20:22:47 -04:00
Kyle Spearrin
613edab908
adjusting config
2020-08-31 18:25:27 -04:00
Kyle Spearrin
aa67de64c4
dont set SetIdentityServerOrigin for identity
2020-08-31 18:19:23 -04:00
Kyle Spearrin
ed9599b9fc
fix SetIdentityServerOrigin
2020-08-31 16:19:34 -04:00
Kyle Spearrin
41908b7b68
SetIdentityServerOrigin
2020-08-31 16:06:24 -04:00
Kyle Spearrin
31e4db250b
init OpenIdConnectConfiguration
2020-08-31 15:43:47 -04:00
Kyle Spearrin
9b02c2adb5
try explicitly setting AuthorizationEndpoint
2020-08-31 15:35:13 -04:00
Kyle Spearrin
b848e9e22c
fix MetadataAddress
2020-08-28 21:28:47 -04:00
Kyle Spearrin
5a5b9163bf
use internal sso for metadata address
2020-08-28 21:14:03 -04:00
Kyle Spearrin
f831e1f0f0
use sso external URL
2020-08-28 20:52:06 -04:00
Kyle Spearrin
39df8611e1
swap around sso service uris
2020-08-28 20:36:02 -04:00
Kyle Spearrin
9be30793b9
UsePathBase for identity server
2020-08-28 13:46:38 -04:00
Kyle Spearrin
38728143d8
Added static client store ( #899 )
2020-08-28 13:32:15 -04:00
Chad Scharf
db7d05b52f
Added PreValidate endpoint on Account controller ( #896 )
...
* Added PreValidate endpoint on Account controller
* Fixed IHttpClientFactory implementation
* Core localization and org sproc fix
* Pass culture, fixed sso middleware bug
2020-08-28 12:14:23 -04:00
Addison Beck
59f8467f7c
Create sso user api ( #886 )
...
* facilitate linking/unlinking existing users from an sso enabled org
* added user_identifier to identity methods for sso
* moved sso user delete method to account controller
* fixed a broken test
* Update AccountsController.cs
* facilitate linking/unlinking existing users from an sso enabled org
* added user_identifier to identity methods for sso
* moved sso user delete method to account controller
* fixed a broken test
* added a token to the existing user sso link flow
* added a token to the existing user sso link flow
* fixed a typo
* added an event log for unlink ssoUser records
* fixed a merge issue
* fixed a busted test
* fixed a busted test
* ran a formatter over everything & changed .vscode settings in .gitignore
* chagned a variable to use string interpolation
* removed a blank line
* Changed TokenPurpose enum to a static class of strings
* code review cleanups
* formatting fix
* Changed parameters & logging for delete sso user
* changed th method used to get organization user for deleting sso user records
Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com >
2020-08-26 14:12:04 -04:00
Kyle Spearrin
623cd36bd4
upgrade identity server 4 to v4 ( #842 )
...
* upgrade identity server 4 to v4
* remove script ref
2020-07-30 17:00:13 -04:00
Kyle Spearrin
0d0c6c7167
sso integrations ( #822 )
...
* stub out hybrid sso
* support for PKCE authorization_code clients
* sso service urls
* sso client key
* abstract request validator
* support for verifying password
* custom AuthorizationCodeStore that does not remove codes
* cleanup
* comment
* created master password
* ResetMasterPassword
* rename Sso client to OidcIdentity
* update env builder
* bitwarden sso project in docker-compose
* sso path in nginx config
2020-07-16 08:01:39 -04:00
Chad Scharf
9800b752c0
Changed all C# control flow block statements to include space between keyword and open paren
2020-03-27 14:36:37 -04:00
Kyle Spearrin
29580684a3
upgrade to aspnet core 3.1
2020-01-10 08:33:13 -05:00
Kyle Spearrin
9e470c1f7a
log startup
2019-11-27 14:42:24 -05:00
Kyle Spearrin
aca274a49b
add new properties to LogContext
2019-09-03 14:44:22 -04:00
Kyle Spearrin
94188fa0b5
update to net core 2.2
2019-07-23 16:38:49 -04:00
Kyle Spearrin
242e509b9d
set en-US as default current culture
2019-07-11 15:03:17 -04:00
Kyle Spearrin
6f0d64119a
keep application cache in sync with service bus
2019-06-13 00:10:37 -04:00
Kyle Spearrin
e6baa1490c
UseForwardedHeaders with known proxies
2019-04-26 09:52:54 -04:00
Kyle Spearrin
25899fd326
adjusted serilog inclusion predicate with bypassid
2018-08-15 10:54:15 -04:00
David Roth
702d833cea
Add sentry logging support. ( #240 )
2018-03-23 13:33:31 -04:00
Kyle Spearrin
a9f232746e
store device type and ip address on events
2017-12-15 10:50:06 -05:00
Kyle Spearrin
f4586002c4
organize event models. stub out event services
2017-12-01 09:22:04 -05:00
Kyle Spearrin
953f2aa3ef
filter TokenRequestValidator and TokenValidator
2017-10-27 09:24:09 -04:00
Kyle Spearrin
f44419de7b
filter id server TokenValidator error logs
2017-10-26 23:21:43 -04:00
Kyle Spearrin
5069814c4f
cleanup startup logging
2017-10-23 09:11:25 -04:00
Kyle Spearrin
5ee0b4a9da
simplify secrets in startup via csproj tools
2017-10-19 00:08:09 -04:00
Kyle Spearrin
8b07244c95
move to standard appsettings.json
2017-10-18 23:32:27 -04:00
Kyle Spearrin
857ad5b194
remove cookie auth from useidentity
2017-10-06 14:02:28 -04:00
Kyle Spearrin
0fff886357
added rate limiting to identity
2017-09-28 15:01:43 -04:00
Kyle Spearrin
eb9bb315c3
version info in response headers
2017-08-25 08:57:43 -04:00
Kyle Spearrin
d15917d3c9
stubbed out jobs worker console app
2017-08-17 11:28:27 -04:00
Kyle Spearrin
9bc6ba554a
docker setup
2017-08-07 16:31:00 -04:00
Kyle Spearrin
f598b78ecb
UseForwardedHeadersForAzure
2017-07-21 12:53:26 -04:00
Kyle Spearrin
59820678fa
filter TokenRequestValidator from identity
2017-05-08 11:58:53 -04:00
Kyle Spearrin
2c604d61b2
standardize secrets id
2017-05-08 08:32:06 -04:00