From ed91b80edcbe90a2d3212d3054e05eeb236c5400 Mon Sep 17 00:00:00 2001 From: Jenn MacFarlane Date: Wed, 23 Oct 2024 14:39:06 -0700 Subject: [PATCH 1/5] PSG-4902 update licensefile --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 25a3cfa..3442d75 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Passage Identity, Inc. +Copyright (c) 2024 Passage by 1Password Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 4cde23885caaea744945bb3e1ebc22a1d85d7384 Mon Sep 17 00:00:00 2001 From: Jenn MacFarlane Date: Wed, 23 Oct 2024 14:49:18 -0700 Subject: [PATCH 2/5] PSG-4902 update readme --- README.md | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b789b40..96dd7b4 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,82 @@ -# Passage Go +![passage-go](https://storage.googleapis.com/passage-docs/github-md-assets/passage-go.png) -[![Go Reference](https://pkg.go.dev/badge/github.com/passageidentity/passage-go.svg)](https://pkg.go.dev/github.com/passageidentity/passage-go) +![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/passageidentity/passage-go) +![Golang](https://img.shields.io/badge/golang-00ADD8?&style=plastic&logo=go&logoColor=white) +![GitHub License](https://img.shields.io/github/license/passageidentity/passage-go) +![Static Badge](https://img.shields.io/badge/Built_by_1Password-grey?logo=1password) -✨ Easily authenticate requests and manage Passage users. +## About -📚 See examples in the [Passage docs](https://docs.passage.id/complete/backend-sdks/go). +[Passage by 1Password](https://1password.com/product/passage) unlocks the passwordless future with a simpler, more secure passkey authentication experience. Passage handles the complexities of the [WebAuthn API](https://blog.1password.com/what-is-webauthn/), and allows you to implement passkeys with ease. -🔎 Reference detailed documentation in the [Go Reference](https://pkg.go.dev/github.com/passageidentity/passage-go). +Use [Passkey Flex](https://docs.passage.id/flex) to add passkeys to an existing authentication experience. + +Use [Passkey Complete](https://docs.passage.id/complete) as a standalone passwordless auth solution. + +Use [Passkey Ready](https://docs.passage.id/passkey-ready) to determine if your users are ready for passkeys. + +### In passage-go + +Use passage-go to implement Passkey Complete into your Go backend to authenticate requests and manage users. + +| Product | Compatible | +| ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| ![Passkey Flex](https://storage.googleapis.com/passage-docs/github-md-assets/passage-passkey-flex-icon.png) Passkey **Flex** | ✖️ For Passkey Flex, check out the [Passkey Flex APIs](https://docs.passage.id/flex/apis) | +| ![Passkey Complete](https://storage.googleapis.com/passage-docs/github-md-assets/passage-passkey-complete-icon.png) Passkey **Complete** | ✅ | +| ![Passkey Ready](https://storage.googleapis.com/passage-docs/github-md-assets/passage-passkey-ready-icon.png) Passkey **Ready** | ✖️ For Passkey Ready, check out [Authentikit](https://www.npmjs.com/package/@passageidentity/authentikit) | + +## Getting Started + +### Check Prerequisites + +

+ You'll need a free Passage account and a Passkey Complete app set up in Passage Console to get started.
+ Learn more about Passage Console → +

+ +### Install + +```shell +go get github.com/passageidentity/passage-go +``` + +### Import + +```go +import ( + "net/http" + + "github.com/passageidentity/passage-go" +) +``` + +### Initialize + +```go +psg, _ := passage.New("YOUR_PASSAGE_APP_ID", nil) +``` + +### Go Passwordless + +Find all core functions, user management details, and more implementation guidance on our [Passkey Complete Go Documentation](https://docs.passage.id/complete/backend-sdks/go) page. + +## Support & Feedback + +We are here to help! Find additional docs, the best ways to get in touch with our team, and more within our [support resources](https://github.com/passageidentity/.github/blob/main/SUPPORT.md). + +
+ +--- + +

+ + + + Passage by 1Password Logo + +

+ +

+ Passage is a product by 1Password, the global leader in access management solutions with nearly 150k business customers.
+ This project is licensed under the MIT license. See the LICENSE file for more info. +

From d2cf94f25110c4f911e595e2ee2a1453e58fb5e5 Mon Sep 17 00:00:00 2001 From: Jenn MacFarlane Date: Wed, 23 Oct 2024 14:50:44 -0700 Subject: [PATCH 3/5] PSG-4902 update changelog --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c54376e..be17f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## [1.11.1] - 2024-10-24 + +### Added + +- LICENSE file added + +### Changed + +- README updated + ## [1.11.0] - 2024-03-21 ### Added @@ -20,4 +30,4 @@ All notable changes to this project will be documented in this file. - `UserEventInfo` has been renamed to `UserRecentEvent` - Docs have been moved to `/docs` - `GithubSocialConnection` has been renamed to `GithubUserSocialConnection` -- `GoogleSocialConnection` has been renamed to `GoogleUserSocialConnection` \ No newline at end of file +- `GoogleSocialConnection` has been renamed to `GoogleUserSocialConnection` From 7b6bf5a3a5945dc423627904f225f6b7f8e70139 Mon Sep 17 00:00:00 2001 From: Jenn MacFarlane Date: Wed, 23 Oct 2024 15:15:51 -0700 Subject: [PATCH 4/5] PSG-4902 update changefile --- CHANGELOG.md | 19 +++++++++++++++++++ version.txt | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be17f9a..22e0f5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,25 @@ All notable changes to this project will be documented in this file. +## [1.11.2] - 2024-10-24 + +### Added + +- chore: LICENSE file added + +### Changed + +- docs: README updated +- docs: update Passage Docs link +- ci: pin gorename to v0.24.0 to avoid conflict with go runtime 1.20.0 +- test: fix test user identifier conflict + +## [1.11.1] - 2024-07-29 + +### Changed + +- chore(deps): bump github.com/lestrrat-go/jwx from 1.2.26 to 1.2.29 + ## [1.11.1] - 2024-10-24 ### Added diff --git a/version.txt b/version.txt index 78e21eb..4a36d84 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v1.11.1 \ No newline at end of file +v1.11.2 \ No newline at end of file From c6cafa24bb786f80337a273be229c2411bc349fa Mon Sep 17 00:00:00 2001 From: Jenn MacFarlane <133913665+jenn-macfarlane@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:16:32 -0700 Subject: [PATCH 5/5] Apply suggestions from code review Co-authored-by: Chris Tran --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 96dd7b4..19ceb5d 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,6 @@ go get github.com/passageidentity/passage-go ```go import ( - "net/http" - "github.com/passageidentity/passage-go" ) ``` @@ -53,7 +51,7 @@ import ( ### Initialize ```go -psg, _ := passage.New("YOUR_PASSAGE_APP_ID", nil) +psg, err := passage.New(os.Getenv("PASSAGE_APP_ID"), &passage.Config{APIKey: os.Getenv("PASSAGE_API_KEY")}) ``` ### Go Passwordless