Skip to content

Enterprise sign in - #667

Merged
niik merged 27 commits into
masterfrom
enterprise-sign-in
Nov 21, 2016
Merged

niik merged 27 commits into
masterfrom
enterprise-sign-in

Conversation

@joshaber

@joshaber joshaber commented Nov 17, 2016 •

Copy link
Copy Markdown
Contributor

Depends on #639

Fixes #56

@joshaber joshaber changed the title [WIP] Enterprise sign in Enterprise sign in Nov 18, 2016
@joshaber joshaber changed the title Enterprise sign in [WIP] Enterprise sign in Nov 18, 2016
@joshaber joshaber changed the title [WIP] Enterprise sign in Enterprise sign in Nov 18, 2016
@joshaber

joshaber commented Nov 18, 2016 •

Copy link
Copy Markdown
Contributor Author

This is ready 🙏

There are lot of edge cases uncovered (loading indicators, old Enterprise servers, etc.) that I'd like to address in a follow-up PR.

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose freely which comments you wish to address in this PR and which can wait to the follow-up

this.setState({ serverAddress: this.state.serverAddress, loading: true })

const address = this.state.serverAddress
const endpoint = getEnterpriseAPIURL(address)

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/src/lib/api.ts
*/
export function getEnterpriseAPIURL(endpoint: string): string {
const parsed = URL.parse(endpoint)
return `${parsed.protocol}//${parsed.hostname}/api/v3`

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/src/lib/api.ts
/** Get metadata from the server. */
export async function fetchMetadata(endpoint: string): Promise<IServerMetadata> {
const response = await request(endpoint, null, 'GET', 'meta', null)
return toCamelCase(response.body)

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/src/lib/api.ts
return 'https://github.com'
} else {
const parsed = URL.parse(endpoint)
return `${parsed.protocol}//${parsed.hostname}`

This comment was marked as spam.

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor Author

📙

@niik
niik merged commit 2ddae68 into master Nov 21, 2016
@niik
niik deleted the enterprise-sign-in branch November 21, 2016 14:53
@joshaber joshaber mentioned this pull request Nov 21, 2016
4 tasks done
mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
* Update README.md to add mirror

I added `mirror.mwt.me` as a possible repo option. I tried to keep this stylistically consistent with the rest of the document.

I also offloaded the GPG key download to keys.openpgp.org. This allows this step to work even if PackageCloud is out of bandwidth. It also has the advantage of putting the key id in the README and does not require users to trust me.

* undo use of openpgp.org

* Mention AppImage and Flatpak
mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
* Update README.md to add mirror

I added `mirror.mwt.me` as a possible repo option. I tried to keep this stylistically consistent with the rest of the document.

I also offloaded the GPG key download to keys.openpgp.org. This allows this step to work even if PackageCloud is out of bandwidth. It also has the advantage of putting the key id in the README and does not require users to trust me.

* undo use of openpgp.org

* Mention AppImage and Flatpak
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
* Update README.md to add mirror

I added `mirror.mwt.me` as a possible repo option. I tried to keep this stylistically consistent with the rest of the document.

I also offloaded the GPG key download to keys.openpgp.org. This allows this step to work even if PackageCloud is out of bandwidth. It also has the advantage of putting the key id in the README and does not require users to trust me.

* undo use of openpgp.org

* Mention AppImage and Flatpak
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
* Update README.md to add mirror

I added `mirror.mwt.me` as a possible repo option. I tried to keep this stylistically consistent with the rest of the document.

I also offloaded the GPG key download to keys.openpgp.org. This allows this step to work even if PackageCloud is out of bandwidth. It also has the advantage of putting the key id in the README and does not require users to trust me.

* undo use of openpgp.org

* Mention AppImage and Flatpak
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
* Update README.md to add mirror

I added `mirror.mwt.me` as a possible repo option. I tried to keep this stylistically consistent with the rest of the document.

I also offloaded the GPG key download to keys.openpgp.org. This allows this step to work even if PackageCloud is out of bandwidth. It also has the advantage of putting the key id in the README and does not require users to trust me.

* undo use of openpgp.org

* Mention AppImage and Flatpak
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
* Update README.md to add mirror

I added `mirror.mwt.me` as a possible repo option. I tried to keep this stylistically consistent with the rest of the document.

I also offloaded the GPG key download to keys.openpgp.org. This allows this step to work even if PackageCloud is out of bandwidth. It also has the advantage of putting the key id in the README and does not require users to trust me.

* undo use of openpgp.org

* Mention AppImage and Flatpak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants