toondaey / nestjs-oauth2-server

A Nestjs wrapper for OAuth2 server.
MIT License
51 stars 15 forks source link

How to test your test controller URL? Please I'm doing my final year project. #103

Open Meera24 opened 3 years ago

Meera24 commented 3 years ago

How to test your test controller URL? I didn't not understand. If you could help me, I would like to know further about it. All is Post request, what data to include in the body of post request??

toondaey commented 3 years ago

I'm not sure I understand what you're referring to here. Can you share a code snippet if possible?

Meera24 commented 3 years ago

I want to test the Url in the postman that you build in the test.controller.ts. Why it is return status code 401? How to send the post request to get access token?

On Wed, 25 Aug 2021, 14:24 toondaey, @.***> wrote:

I'm not sure I understand what you're referring to here. Can you share a code snippet if possible?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/toondaey/nestjs-oauth2-server/issues/103#issuecomment-905219637, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNH3MY4F2TZGVYP66CRIB3T6SEBBANCNFSM5CXXISMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

Meera24 commented 3 years ago

All code is yours. Im just trying to run your project.

On Wed, 25 Aug 2021, 15:32 Sivasangari Krishnan, < @.***> wrote:

I want to test the Url in the postman that you build in the test.controller.ts. Why it is return status code 401? How to send the post request to get access token?

On Wed, 25 Aug 2021, 14:24 toondaey, @.***> wrote:

I'm not sure I understand what you're referring to here. Can you share a code snippet if possible?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/toondaey/nestjs-oauth2-server/issues/103#issuecomment-905219637, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNH3MY4F2TZGVYP66CRIB3T6SEBBANCNFSM5CXXISMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

Meera24 commented 3 years ago

I'm getting my reply in postman as this { "status Code" :401, "message" :"Unauthorised request : no authentication given"}

On Wed, 25 Aug 2021, 15:33 Sivasangari Krishnan, < @.***> wrote:

All code is yours. Im just trying to run your project.

On Wed, 25 Aug 2021, 15:32 Sivasangari Krishnan, < @.***> wrote:

I want to test the Url in the postman that you build in the test.controller.ts. Why it is return status code 401? How to send the post request to get access token?

On Wed, 25 Aug 2021, 14:24 toondaey, @.***> wrote:

I'm not sure I understand what you're referring to here. Can you share a code snippet if possible?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/toondaey/nestjs-oauth2-server/issues/103#issuecomment-905219637, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNH3MY4F2TZGVYP66CRIB3T6SEBBANCNFSM5CXXISMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .