Skip to content

[NEW] Added endpoint to get the list of available oauth services#10144

Merged
rodrigok merged 5 commits intodevelopfrom
feature/rest-list-all-oauth-services
Mar 15, 2018
Merged

[NEW] Added endpoint to get the list of available oauth services#10144
rodrigok merged 5 commits intodevelopfrom
feature/rest-list-all-oauth-services

Conversation

@MarcosSpessatto
Copy link
Contributor

Closes #8519.
Added endpoint to get the list of available oauth services.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-10144 March 14, 2018 21:13 Inactive
@MarcosSpessatto
Copy link
Contributor Author

@rafaelks, could you take a look, please?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about settings.oauth?

rename endpoind to settings.oauth and fix lint problems
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-10144 March 14, 2018 21:18 Inactive
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-10144 March 14, 2018 21:21 Inactive
@RocketChat RocketChat deleted a comment Mar 14, 2018
@RocketChat RocketChat deleted a comment Mar 14, 2018
@rafaelks rafaelks added this to the 0.63.0 milestone Mar 14, 2018
@MarcosSpessatto
Copy link
Contributor Author

Docs.

Copy link
Contributor

@rafaelks rafaelks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just confirmed, it is working fine (@filipedelimabrito can use Heroku instance to test it for now):

$ curl -X GET "https://rocket-chat-pr-10144.herokuapp.com/api/v1/settings.oauth" | python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    95    0    95    0     0    136      0 --:--:-- --:--:-- --:--:--   136
{
    "services": [
        {
            "appId": "clientIdTest",
            "id": "z4o9zPBYYLEAWGnXZ",
            "name": "github"
        }
    ],
    "success": true
}

@rafaelks
Copy link
Contributor

@MarcosSpessatto Thank you!!! 👊

@philipbrito
Copy link
Contributor

Cool! Thank you!

id: service._id,
name: service.service,
appId: service.appId || service.clientId
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not return buttonLabelText, buttonLabelColor and buttonColor?

Added buttons Properties to response in settings.oauth endpoint
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-10144 March 15, 2018 19:02 Inactive
fix lint problem
@rodrigok rodrigok merged commit 6adae8b into develop Mar 15, 2018
@rodrigok rodrigok deleted the feature/rest-list-all-oauth-services branch March 15, 2018 19:30
@rodrigok rodrigok mentioned this pull request Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments