Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2207 - Implement basic authentication #11

Closed
Tracked by #1
njtalba5127 opened this issue Dec 8, 2022 · 8 comments · Fixed by #27
Closed
Tracked by #1

2207 - Implement basic authentication #11

njtalba5127 opened this issue Dec 8, 2022 · 8 comments · Fixed by #27
Assignees
Labels
enhancement New feature or request

Comments

@njtalba5127
Copy link
Member

njtalba5127 commented Dec 8, 2022

Timestamp: (2207) 2207 / 2549

@njtalba5127 njtalba5127 mentioned this issue Dec 8, 2022
23 tasks
@njtalba5127 njtalba5127 added the enhancement New feature or request label Dec 8, 2022
@njtalba5127 njtalba5127 self-assigned this Dec 8, 2022
@njtalba5127 njtalba5127 moved this from Todo to In Progress in 2223-1202WinterFuyu-Projects Dec 16, 2022
@njtalba5127
Copy link
Member Author

forgot i logged out and rerun my spring app so i might have a new generate password given by the run logs

315c56e8-fa11-4685-9d15-5d97921ac7aa

@njtalba5127
Copy link
Member Author

anyways if we go using our browsers to http://localhost:8080/api/v1/greetings, the login form will look different since we override our spring config earlier. so its more like using the browsers native / built in form for login

@njtalba5127
Copy link
Member Author

now lets try to enter using the new login form and credentials

username: "user"
password: "315c56e8-fa11-4685-9d15-5d97921ac7aa"

and there it works the same way as last time.

@njtalba5127
Copy link
Member Author

they once again showed the sequence diagram for authentication.

@njtalba5127
Copy link
Member Author

oh now theyre showing the use of postman. ill use thunderclient then

@njtalba5127
Copy link
Member Author

njtalba5127 commented Dec 16, 2022

thunder-client:

GET
http://localhost:8080/api/v1/greetings

Authorisation - Basic:
username: "user"
password: "315c56e8-fa11-4685-9d15-5d97921ac7aa"

Screenshot_code_20221216174228

output:

Hello from our API

works as expected

@njtalba5127
Copy link
Member Author

ayt done, next part

@njtalba5127
Copy link
Member Author

wow i like how fast were going, likin this new way of taking notes / documentations while following the course and coding on the fly

@njtalba5127 njtalba5127 linked a pull request Dec 16, 2022 that will close this issue
Repository owner moved this from In Progress to Done in 2223-1202WinterFuyu-Projects Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant