gree / gree/unity-webview

Get Authentication Token from url?

Open
#328 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

Hi guys,

I'm trying to do the following operation:

1-Open url (check)
2-url display authentication form (check)
3-user fills in form and authenticates (check)

After authentication I am redirected to an url where I am given a token and some data (like https://www.example.com/auth?token=awesomeToken) and a response like {"userdata":"SomeText","id":12345}.

So, here I need to:

4-get the token (important bit)
5-get the data (meh, I can get this some other way if I get the token)

After going about the sample, I wasn't able to figure out how can I do step 4 or 5.

Can anyone help me or point me on the right direction to do it?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, test, or entry point; begin with the sample used for the authentication flow and inspect how the redirected URL and response are exposed. Determine whether the project can surface the query token and JSON data after authentication; done means there is a clear, working way to retrieve both.

Written by the indexing model from the issue text.

Assessment

Tech stack
unity
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.