Skip to content

Add support for login without manually copying tokens#6

Open
ktiedt wants to merge 1 commit intodank:masterfrom
ktiedt:feature/automated-auth
Open

Add support for login without manually copying tokens#6
ktiedt wants to merge 1 commit intodank:masterfrom
ktiedt:feature/automated-auth

Conversation

@ktiedt
Copy link
Copy Markdown
Contributor

@ktiedt ktiedt commented May 2, 2026

This enables authentication (with maybe 10-20 loc on the app side) via Epics /activate work flow.

@ktiedt
Copy link
Copy Markdown
Contributor Author

ktiedt commented May 2, 2026

Ugh, apparently I accidentally caught some other files in this, ill clean that up real quick

@ktiedt ktiedt force-pushed the feature/automated-auth branch from e6e66c7 to 731a52e Compare May 2, 2026 23:10
@ktiedt
Copy link
Copy Markdown
Contributor Author

ktiedt commented May 2, 2026

Cleaned up.

@ktiedt
Copy link
Copy Markdown
Contributor Author

ktiedt commented May 2, 2026

image

Sample of implementation in my local setup

@ktiedt ktiedt force-pushed the feature/automated-auth branch from 731a52e to 4c9fad2 Compare May 3, 2026 03:12
@LEX0RE
Copy link
Copy Markdown

LEX0RE commented May 3, 2026

Little suggestion, you should probably reformulate your function with:
RequestDeviceCode instead of AuthenticateWithDeviceCode
AuthenticateWithDeviceCode instead of PollEOSToken
That would help to better understand and match the current function maybe. Just a suggestion

@ktiedt
Copy link
Copy Markdown
Contributor Author

ktiedt commented May 3, 2026

I'm definitely not married to any of the names, this was a happy accident from vibe coding. So I'm happy to defer to others on if the names could be more helpful and clear.

@dank
Copy link
Copy Markdown
Owner

dank commented May 5, 2026

Can you briefly explain how this auth flow works?

This looks good, I just haven't seen this endpoint before. I'll take a closer look sometime this week.

Comment thread egs.go
egsOAuthURL = "account-public-service-prod03.ol.epicgames.com"
eosAuthHeader = "eHl6YTc4OTFwNUQ3czlSNkdtNm1vVEhXR2xvZXJwN0I6S25oMThkdTROVmxGcyszdVErWlBwRENWdG8wV1lmNHlYUDgrT2N3VnQxbw=="
eosDeploymentID = "da32ae9c12ae40e8a112c52e1f17f3ba" // Rocket League
eosClientID = "xyza7891p5D7s9R6Gm6moTHWGloerp7B"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Where does this come from?

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.

3 participants