Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: auto registry projects in sidebar #2122

Conversation

Anilople
Copy link
Contributor

Describe what this PR does / why we need it

Use apollo JSESSIONID in portal's Cookie, to auto authrize managed app id, and registry them to sentinel dashboard.

Make the authorization of new project more easier.

Describe how you did it

Put JSESSIONID in Cookie, and send HTTP POST to apollo portal.

The apollo portal's controller in https://github.com/ctripcorp/apollo/blob/master/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConsumerController.java

HTTP URL

consumers/{token}/assign-role?type=AppRole

example

consumers/58bb334437c20e55b86329d4238cd5baf4d4d420/assign-role?type=AppRole

Request Body

{"appId":"test"}

Describe how to verify it

Test it manually.

sczyh30 and others added 30 commits February 4, 2021 17:08
@Anilople
Copy link
Contributor Author

Sorry about this PR...

The target repo is not correct.

My fault.

@Anilople Anilople closed this Apr 10, 2021
@Anilople Anilople deleted the feature/auto/registry/heartbeat/project/20210407 branch April 10, 2021 06:47
@sczyh30 sczyh30 added the invalid This doesn't seem right label Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants