feat/sg: add 'sg sams client create'#63885
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @bobheadxi and the rest of your teammates on |
d550886 to
0e31f77
Compare
0e31f77 to
e5397d4
Compare
d44553e to
9d9e2b9
Compare
e5397d4 to
cc5009b
Compare
There was a problem hiding this comment.
should we also print localhost:9991 as an option for convenience so you don't have to research the port?
There was a problem hiding this comment.
Added! Once Joe comes back I want to update the callback URLs of the various OAuth clients to point to a different port, so we can change the SAMS dev port to not conflict with embeddings
There was a problem hiding this comment.
can we somehow not print this if sams URL is localhost so devs aren't that scared?
There was a problem hiding this comment.
Added some stuff here to check the hostname of the target server, and if it's localhost or 127.0.0.1, we provide a gentler message about the client credentials only being shown once
9d9e2b9 to
0ec3c34
Compare
45c7236 to
c285ce8
Compare
Co-authored-by: Erik Seliger <erikseliger@me.com>
825404b to
0eda6d8
Compare
Merge activity
|

Adds an equivalent to the curl command we currently share, but in
sg. If we add a better API around this later it's just an in-place replacement.Similar to https://github.com/sourcegraph/sourcegraph/pull/63883 this "just works" with zero configuration against SAMS-dev.
Part https://linear.app/sourcegraph/issue/CORE-220, a spike into polishing some local-dev DX for SAMS.
Test plan
if you hit an error loading the secret, e.g. targeting the prod instance, you get a suggestion to get Entitle access:
Changelog
sg sams client createcan now be used to create IdP clients for SAMS.