Skip to content
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
73e3178
wip
wesleymccollam Sep 29, 2025
0be0973
working client credentials
wesleymccollam Oct 7, 2025
1d347bb
working methods
wesleymccollam Oct 7, 2025
369337f
support auth_code, client_credentials, and device_code authentication…
wesleymccollam Oct 16, 2025
a5256de
Fix token caching detection for OAuth2 authentication methods
wesleymccollam Oct 17, 2025
80e63d8
refactor: address PR feedback for OAuth2 authentication
wesleymccollam Oct 17, 2025
932294c
feat: add support for auth_code, client_credentials, and device_code …
Oct 24, 2025
a56efad
Merge branch 'main' into support-auth_code-client_credentials-device_…
wesleymccollam Oct 24, 2025
2120e1c
feat: Add token validation and dual storage support for authentication
wesleymccollam Oct 29, 2025
6e53300
feat: Add dual token storage with file-based fallback
wesleymccollam Oct 30, 2025
1c86fa0
Updates:
wesleymccollam Nov 3, 2025
a1d4164
updates:
wesleymccollam Nov 3, 2025
5cc6e6f
Updates:
wesleymccollam Nov 4, 2025
8ff01de
PR Review Edits Updates:
wesleymccollam Nov 6, 2025
872f8e8
fix double-save to keychain, update/correct tests
wesleymccollam Nov 7, 2025
96b0148
use SDK for token name generation, rename auth code to authorization …
wesleymccollam Nov 11, 2025
601bc0a
various linting fixes, use errors package for various error outputs, …
wesleymccollam Nov 11, 2025
a53d603
fix logout all methods bug
wesleymccollam Nov 12, 2025
dd3aafb
remove redundant logic from login internal
wesleymccollam Nov 13, 2025
e398a0c
update login error handling to use pingcli errs package
wesleymccollam Nov 13, 2025
6ae4ed6
update authentication documentation
wesleymccollam Nov 13, 2025
715a749
update auth package error handling, remove unused method
wesleymccollam Nov 13, 2025
08fc116
add error prefix contant for token manager, add deprecation usage tex…
wesleymccollam Nov 13, 2025
3cc9b26
fix: improve token storage reliability and authentication status dete…
wesleymccollam Nov 17, 2025
6c65391
lint fixes
wesleymccollam Nov 17, 2025
c9d3832
add --provider flag to login command
wesleymccollam Nov 20, 2025
7a2699c
allow legacy worker authentication type - uses client_credentials
wesleymccollam Dec 1, 2025
24949eb
bump oauth2 package
wesleymccollam Dec 1, 2025
411d2ab
fix worker authentication type when using request command
wesleymccollam Dec 2, 2025
ee795dc
correctly save environmentID in config yaml after interactive login
wesleymccollam Dec 2, 2025
5f26bbf
add region code to interactive login
wesleymccollam Dec 2, 2025
aa990a8
login: if auth type is supplied, and required fields are not present …
wesleymccollam Dec 2, 2025
b2b596a
fix "ERROR: Failed to execute pingcli: invalid authentication type: :…
wesleymccollam Dec 2, 2025
9e552fd
set grant type for client credentials in GetValidTokenSource
wesleymccollam Dec 3, 2025
b606ed7
set environmentid for all grant types to config file after interactiv…
wesleymccollam Dec 3, 2025
17bf6a9
improve output on interactive login
wesleymccollam Dec 3, 2025
311144e
add environmentID when getting auth type configuration, improve login…
wesleymccollam Dec 4, 2025
0cfcfc7
remove scopes option for users, use pingone-go-client oidcopenid enum…
wesleymccollam Dec 4, 2025
181a5da
validate input after submit
wesleymccollam Dec 4, 2025
1554acd
add client credentials secret mask for interactive login
wesleymccollam Dec 5, 2025
1ddb2c7
experimenting with different input package
wesleymccollam Dec 5, 2025
6778ac3
change login info verbiage, remove uncommented line
wesleymccollam Dec 5, 2025
f91c60a
change login command info verbiage
wesleymccollam Dec 5, 2025
1b23599
do not store credential files by default - only use keychain
wesleymccollam Dec 5, 2025
4b70e36
more verbiage changes
wesleymccollam Dec 5, 2025
0cb5e40
fix double keychain storage, fix verbiage
wesleymccollam Dec 5, 2025
cc72d7f
format storage location logic and outputs, fix refresh token usage wi…
wesleymccollam Dec 5, 2025
6d4332c
correctly fall back to pingone environmentid instead of worker app en…
wesleymccollam Dec 8, 2025
ea242d4
correctly fall back to pingone environmentid instead of worker app en…
wesleymccollam Dec 8, 2025
9b3e33e
properly store fileStorage bool in config yaml
wesleymccollam Dec 8, 2025
93d2bfc
change file storage parent name in config file, update output on logout
wesleymccollam Dec 9, 2025
62497a1
fix file storage issue, remove newline from logout success message
wesleymccollam Dec 9, 2025
d7b67ae
fix only logout specific grant type when flag is supplied
wesleymccollam Dec 10, 2025
a895b79
change filestorage to storage type with enums, multiple lint fixes
wesleymccollam Dec 15, 2025
d4dc82c
update docs
wesleymccollam Dec 15, 2025
fd5ac11
fix storage option type
wesleymccollam Dec 16, 2025
a454342
fix worker auth with request usage
wesleymccollam Dec 16, 2025
5403768
correct environment id behavior when using worker authentication
wesleymccollam Dec 17, 2025
1cfdc7c
fix worker auth when using requests, update tests, updated error hand…
wesleymccollam Dec 18, 2025
231a375
corrected: set active profile message, authorization code env var and…
wesleymccollam Jan 8, 2026
e8f58d5
use keychain account name suffix method
wesleymccollam Jan 8, 2026
37908d4
fix storage type
wesleymccollam Jan 9, 2026
e4c284d
align storage logic to client types
wesleymccollam Jan 9, 2026
afcca99
add validation input to interactive login
wesleymccollam Jan 9, 2026
bd392a7
fix login storage type validation
wesleymccollam Jan 9, 2026
d829524
fix platform export with login
wesleymccollam Jan 9, 2026
1a5e2fc
use correct auth type in platform export
wesleymccollam Jan 13, 2026
599462c
linting, use new client release, doc updates
wesleymccollam Jan 13, 2026
96f4edc
doc updates
wesleymccollam Jan 13, 2026
6223e9c
local login docs
samir-gandhi Jan 13, 2026
ea8323f
formatting
samir-gandhi Jan 13, 2026
3011e3e
fix issue where file system storage value didn't work on request comm…
wesleymccollam Jan 14, 2026
d58ab3d
update login storage type env var name
wesleymccollam Jan 14, 2026
f4ce491
update storage flag to --storage-type
wesleymccollam Jan 14, 2026
a2cd64f
correct cobra parameter name for storage type
wesleymccollam Jan 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ endef
# PHONY TARGETS
# ====================================================================================

.PHONY: help default install fmt vet test importfmtlint golangcilint devcheck devchecknotest
.PHONY: help default install fmt vet test test-auth importfmtlint golangcilint devcheck devchecknotest
.PHONY: starttestcontainer removetestcontainer spincontainer openlocalwebapi openapp protogen
.PHONY: _check_env _check_ping_env _check_docker _run_pf_container _wait_for_pf _stop_pf_container
.PHONY: generate-options-docs generate-command-docs generate-all-docs
Expand Down Expand Up @@ -118,13 +118,23 @@ protogen: ## Generate Go code from .proto files
protoc --proto_path=./internal/proto --go_out=./internal --go-grpc_out=./internal ./internal/proto/*.proto
echo "✅ gRPC code generated."

test: _check_ping_env ## Run all tests
@echo " > Test: Running all Go tests..."
for dir in $(TEST_DIRS); do
echo " -> $$dir"
$(GOTEST) $$dir
test: test-auth _check_ping_env ## Run all tests (auth tests run first sequentially, then all others)
@echo " > Test: Running all other Go tests..."
@for dir in $(TEST_DIRS); do \
if [[ "$$dir" != *"/auth" ]]; then \
echo " -> $$dir"; \
$(GOTEST) $$dir; \
fi; \
done
echo "✅ All tests passed."
@echo "✅ All tests passed."

test-auth: _check_ping_env ## Run auth tests sequentially (internal/auth then cmd/auth)
@echo " > Test: Running auth tests sequentially to avoid shared resource conflicts..."
@echo " -> ./internal/auth/..."
@$(GOTEST) ./internal/auth/...
@echo " -> ./cmd/auth/..."
@$(GOTEST) ./cmd/auth/...
@echo "✅ All auth tests passed."

devcheck: install importfmtlint fmt vet golangcilint spincontainer test removetestcontainer ## Run the full suite of development checks and tests
@echo "✅ All development checks passed successfully."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@ pingcli request --http-method GET --service pingone environments

The best way to interact with our team is through Github. You can [open an issue](https://github.com/pingidentity/pingcli/issues/new) for guidance, bug reports, or feature requests.

Please check for similar open issues before opening a new one.
Please check for similar open issues before opening a new one.
22 changes: 0 additions & 22 deletions cmd/auth/auth.go

This file was deleted.

Loading
Loading