Commit graph

473 commits

Author SHA1 Message Date
bobbyrullo
ae56f6de85 Merge pull request #458 from bobbyrullo/load_static_cross_clients
Load trustedPeers in no DB mode, add x-client to example app
2016-06-09 16:29:36 -07:00
Bobby Rullo
ce14dc4368 examples, static: Add cross-client auth to example
* add trustedPeers to a client in client.json.sample
* add optional cross client auth to example web app
* login page is now templated
2016-06-09 16:16:10 -07:00
Eric Chiang
9739b6e966 Merge pull request #461 from burdiyan/400-better-errors-connectors
#400 Add connector id to the registration error message
2016-06-09 09:56:03 -07:00
Alexandr Burdiyan
24134e18ea Add connector id to the registration error message
Right now it is not clear what connector is failing. It will be easier to debug with more specific error message.

Related to #400.
2016-06-09 13:19:21 +02:00
Bobby Rullo
88142764e9 db: Don't check that trusted peers clients exist
Checking that trusted peers exist means that you have to create clients
in a certain order, or else create all the clients, then update trusted
peers. Either way, not a great experience during setup.

The downside, of course, is that you lose validation of peer
IDs.
2016-06-08 11:54:15 -07:00
Bobby Rullo
ca18efb1fe client: load full clients w/ LoadableClient
The Client object on its own doesn't fully express everything about a
single client, and so when loading clients from a static configuration
it's not enough to just (de)serialize clients.

To that end, LoadableClient contains the full representation of a client
and associated entities.
2016-06-08 11:31:50 -07:00
bobbyrullo
a9d854e144 Merge pull request #426 from bobbyrullo/cross_client_2
Cross client work
2016-06-07 17:36:06 -07:00
Bobby Rullo
5939a15d10 remove DexServer 2016-06-07 17:27:06 -07:00
Bobby Rullo
e71c5086ba server: CodeToken now does Cross-Client auth 2016-06-07 17:22:41 -07:00
Bobby Rullo
9b4740862c server: /auth accepts, validates X-client scopes 2016-06-07 17:16:11 -07:00
Bobby Rullo
e6e04be297 integration: changes based on codegen 2016-06-07 17:16:11 -07:00
Bobby Rullo
2406c09598 workerschema: move Client.Revoke to RefreshClient
also, RevokeClient -> RevokeClient for consistency.
2016-06-07 17:16:11 -07:00
Bobby Rullo
e1c070d84e admin: add trustedPeers bootstrap api 2016-06-07 17:16:11 -07:00
Bobby Rullo
5e9dd9f4b0 adminschema: add trustedPeers to client creation 2016-06-07 17:16:11 -07:00
Bobby Rullo
f9dbc8a3d2 db, client: add data model for trusted peers
Trusted Peers are clients that are authorized to mint tokens
for another client.
2016-06-07 17:16:09 -07:00
bobbyrullo
546463adcc Merge pull request #457 from bobbyrullo/client_manager_tweaks
Various client api tweaks
2016-06-07 17:01:28 -07:00
Bobby Rullo
182e8af420 test: alphabetize tests 2016-06-07 16:47:30 -07:00
Bobby Rullo
1b4dca80d7 client: remove ClientManagerFromClients
Replaced by ClientRepoFromClients, which makes more sense IMO. Also, it
was doing the wrong thing: it was ignoring the client_id and client_secret
passed into it as far as I can tell.
2016-06-07 16:47:30 -07:00
Bobby Rullo
a33d61c8e2 server: remove boilerplate setup code part deux
Use the test fixture setup stuff in testutil instead.
2016-06-07 16:47:30 -07:00
Bobby Rullo
ad1d5ab253 server: remove boilerplate setup code
Use the test fixture setup stuff in testutil instead.
2016-06-07 16:47:29 -07:00
Bobby Rullo
8d1a6f2324 functional: test sample clients file is valid
Also tests that it's being loaded properly (which is not the case in
NewClientManagerFromClients, which will be removed in subsequent commit)
2016-06-07 16:47:29 -07:00
Eric Chiang
9c260c7698 Merge pull request #455 from ericchiang/update-go-versions-for-travis
*: Update Go versions used for Travis tests and test tip
2016-06-06 10:29:20 -07:00
Eric Chiang
ca0655cbba Merge pull request #453 from kismatic/tls-example-app
Added TLS support to the example application
2016-06-05 09:54:37 -07:00
abrand
51659716e0 Improved error message when TLS config is specified, but listen/redirect URL are using wrong scheme 2016-06-03 20:04:13 -04:00
Eric Chiang
2362154d99 *: allow builds with development versions of Go 2016-06-03 11:19:19 -07:00
Eric Chiang
1ffb243e9a *: Update Go versions used for Travis tests and test tip 2016-06-03 10:56:03 -07:00
Eric Chiang
2d5fb0b47a Merge pull request #316 from fnordahl/issue/309-implement-connection-pooling
connector_ldap: Implement connection pooling for LDAP connections
2016-06-03 08:30:12 -07:00
abrand
6f98dfeb96 Added TLS support to the example application 2016-06-03 07:51:00 -04:00
Frode Nordahl
3077979a3b Functional tests for LDAP Connection Pool 2016-06-03 11:04:58 +02:00
Frode Nordahl
e531dd6be5 Implement connection pooling for LDAP connections
Fixes #309
2016-06-03 11:04:58 +02:00
Frode Nordahl
f976fa1d3b vendor: Add golang.org/x/net/context 2016-06-03 11:00:29 +02:00
Bobby Rullo
86ef34d8e2 client: generateClientCreds -> addClientCreds
a little easier to read this way IMO.
2016-06-02 18:39:58 -07:00
Eric Chiang
4440b3a085 Merge pull request #449 from ericchiang/add-connectors-to-api
Set and list connectors from admin API
2016-06-01 10:51:30 -07:00
Eric Chiang
35ea3d9ae1 *: add ability to set and list connectors from admin API
closes #360
2016-06-01 09:31:47 -07:00
Eric Chiang
adbf486246 schema/adminschema: add route for setting and listing connectors 2016-06-01 09:31:47 -07:00
bobbyrullo
65461a1c58 Creating releases... (#435)
* Create releases.md

* (SQUASH) make note about keys
2016-05-27 10:58:09 -04:00
bobbyrullo
04fa835405 Merge pull request #353 from fnordahl/issue/156
vendor: update go-oidc to latest
2016-05-27 10:56:54 -04:00
Bobby Rullo
bbaea52ea6 alternate approach to fixing tests 2016-05-27 00:22:27 +02:00
Frode Nordahl
58f1bb4556 vendor: update go-oidc 2016-05-27 00:22:27 +02:00
Eric Chiang
2003df83cf schema: standardize JSON formatting 2016-05-26 13:13:20 -07:00
Eric Chiang
f39191a92d schema: add small tool to standardize JSON formatting 2016-05-26 10:41:16 -07:00
Evan Cordell
a846016ceb Merge pull request #442 from ecordell/client-manager
Adds client manager
2016-05-24 16:06:48 -05:00
Evan Cordell
73d9742c8b client manager: accept full client when creating 2016-05-24 14:44:04 -05:00
bobbyrullo
b0f17c9429 Merge pull request #446 from xaka/patch-2
examples: add sample for clients
2016-05-24 11:03:48 -04:00
Evan Cordell
a418e1c4e7 client: add client manager
adds a client manager to handle business logic, leaving the repo
for basic crud operations. Also adds client to the test script
2016-05-19 16:20:12 -07:00
Evan Cordell
3da98fcb8e client: add transaction support 2016-05-19 16:17:01 -07:00
Pavel Strashkin
dec5d90657 examples: add sample for clients
Adds consistency to existing samples for users, connectors, etc., as
well as protects users from accidental changes to files under Git, which
is why there are samples after all.
2016-05-18 18:18:20 -07:00
Ed Rooth
02bf115026 Merge pull request #445 from xaka/patch-1
Documentation: use "cp" instead of "mv" to keep git state untouched
2016-05-18 18:04:55 -07:00
Pavel Strashkin
a886eef2a6 Documentation: use "cp" instead of "mv" to keep git state untouched 2016-05-18 11:45:02 -07:00
bobbyrullo
e640be85c6 Merge pull request #444 from bobbyrullo/fix_375
Revert "Fix response_type missing param"
2016-05-17 14:25:13 -07:00