Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

initial support for Token Authentication (JWT) #66

Closed
wants to merge 1 commit into from
Closed

Conversation

nathany
Copy link
Contributor

@nathany nathany commented Jun 15, 2016

Just a start to enable use with Token Authentication, based on these slides https://developer.apple.com/videos/play/wwdc2016/724/

ref #63

service := push.NewService(http.DefaultClient, host)
// ...
id, err := service.Push(deviceToken, &push.Headers{Authorization: "eyJhbGciOiJFUzI1N"}, b)

Unfortunately this isn't working quite yet. I'm not even getting a InvalidProviderToken error from Apple.

❯ GODEBUG=http2debug=1 go run main.go -d devicetoken                      
2016/06/15 15:01:04 http2: Transport failed to get client conn for api.development.push.apple.com:443: http2: no cached connection was available
2016/06/15 15:01:05 http2: Transport creating client conn to 17.172.238.203:443
2016/06/15 15:01:05 Unhandled Setting: [HEADER_TABLE_SIZE = 4096]
2016/06/15 15:01:05 Unhandled Setting: [MAX_HEADER_LIST_SIZE = 8000]
2016/06/15 15:01:05 http2: Transport failed to get client conn for api.development.push.apple.com:443: http2: no cached connection was available
Post https://api.development.push.apple.com/3/device/devicetoken: http2: no cached connection was available
exit status 1

@nathany
Copy link
Contributor Author

nathany commented Sep 21, 2016

going dark on this (NDA) while working in Apple's pilot program in a private fork of Buford

@nathany nathany closed this Sep 21, 2016
@nathany nathany deleted the jwt branch September 21, 2016 22:56
@nathany
Copy link
Contributor Author

nathany commented Sep 28, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant