Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
dex
Commits
0ea891b2
Commit
0ea891b2
authored
8 years ago
by
Eric Chiang
Browse files
Options
Downloads
Patches
Plain Diff
api: add initial gRPC service definition
parent
ea3a4293
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/api.proto
+46
-0
46 additions, 0 deletions
api/api.proto
with
46 additions
and
0 deletions
api/api.proto
0 → 100644
+
46
−
0
View file @
0ea891b2
syntax
=
"proto3"
;
package
api
;
// Client represents an OAuth2 client.
message
Client
{
string
id
=
1
;
string
secret
=
2
;
repeated
string
redirect_uris
=
3
;
repeated
string
trusted_peers
=
4
;
bool
public
=
5
;
string
name
=
6
;
string
logo_url
=
7
;
}
// CreateClientReq is a request to make a client.
message
CreateClientReq
{
Client
client
=
1
;
}
// CreateClientResp returns the response from creating a client.
message
CreateClientResp
{
bool
already_exists
=
1
;
Client
client
=
2
;
}
// DeleteClientReq is a request to delete a client.
message
DeleteClientReq
{
// The ID of the client.
string
id
=
1
;
}
// DeleteClientResp determines if the.
message
DeleteClientResp
{
bool
not_found
=
1
;
}
// TODO(ericchiang): expand this.
// Dex represents the dex gRPC service.
service
Dex
{
// CreateClient attempts to create the client.
rpc
CreateClient
(
CreateClientReq
)
returns
(
CreateClientResp
)
{};
// DeleteClient attempts to delete the provided client.
rpc
DeleteClient
(
DeleteClientReq
)
returns
(
DeleteClientResp
)
{};
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment