Skip to content

Commit

Permalink
return user on auth
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Nov 21, 2019
1 parent f389189 commit 1ec31ec
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
5 changes: 4 additions & 1 deletion cs3/authprovider/v0alpha/authprovider.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ option php_namespace = "CS3\\AuthProviderV0Alpha";

import "cs3/rpc/status.proto";
import "cs3/types/types.proto";
import "cs3/userprovider/v0alpha/resources.proto";

service AuthProviderService {
rpc Authenticate(AuthenticateRequest) returns (AuthenticateResponse);
Expand All @@ -42,6 +43,8 @@ message AuthenticateRequest {
}

message AuthenticateResponse {
reserved 2;
reserved "user_id";
cs3.rpc.Status status = 1;
cs3.types.UserId user_id = 2;
cs3.userproviderv0alpha.User user = 3;
}
6 changes: 4 additions & 2 deletions cs3/gateway/v0alpha/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ message AuthenticateRequest {
}

message AuthenticateResponse {
reserved 4;
reserved "user_id";
// REQUIRED.
// The response status.
cs3.rpc.Status status = 1;
Expand All @@ -293,8 +295,8 @@ message AuthenticateResponse {
// The access token.
string token = 3;
// REQUIRED.
// The user id.
cs3.types.UserId user_id = 4;
// The user.
cs3.userproviderv0alpha.User user = 5;
}

message WhoAmIRequest {
Expand Down
5 changes: 3 additions & 2 deletions cs3/userprovider/v0alpha/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ option php_namespace = "CS3\\UserProviderV0Alpha";
import "cs3/types/types.proto";

message User {
reserved 2, 3;
reserved "issuer", "subject";
cs3.types.UserId id = 1;
string issuer = 2;
string subject = 3;
string username = 4;
string mail = 5;
string display_name = 6;
repeated string groups = 7;
cs3.types.Opaque opaque = 8;
bool mail_verified = 9;
}
31 changes: 12 additions & 19 deletions docs/index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2290,8 +2290,8 @@ <h3 id="cs3.authproviderv0alpha.AuthenticateResponse">AuthenticateResponse</h3>
</tr>

<tr>
<td>user_id</td>
<td><a href="#cs3.types.UserId">cs3.types.UserId</a></td>
<td>user</td>
<td><a href="#cs3.userproviderv0alpha.User">cs3.userproviderv0alpha.User</a></td>
<td></td>
<td><p> </p></td>
</tr>
Expand Down Expand Up @@ -2677,11 +2677,11 @@ <h3 id="cs3.gatewayv0alpha.AuthenticateResponse">AuthenticateResponse</h3>
</tr>

<tr>
<td>user_id</td>
<td><a href="#cs3.types.UserId">cs3.types.UserId</a></td>
<td>user</td>
<td><a href="#cs3.userproviderv0alpha.User">cs3.userproviderv0alpha.User</a></td>
<td></td>
<td><p>REQUIRED.
The user id. </p></td>
The user. </p></td>
</tr>

</tbody>
Expand Down Expand Up @@ -8929,20 +8929,6 @@ <h3 id="cs3.userproviderv0alpha.User">User</h3>
<td><p> </p></td>
</tr>

<tr>
<td>issuer</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>

<tr>
<td>subject</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>

<tr>
<td>username</td>
<td><a href="#string">string</a></td>
Expand Down Expand Up @@ -8978,6 +8964,13 @@ <h3 id="cs3.userproviderv0alpha.User">User</h3>
<td><p> </p></td>
</tr>

<tr>
<td>mail_verified</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p> </p></td>
</tr>

</tbody>
</table>

Expand Down

0 comments on commit 1ec31ec

Please sign in to comment.