How to set expiration time of the token to specific value [closed] - spring-boot

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 days ago.
Improve this question
I need to set the expiration time of the token to fix value.(Eg:-5 minutes).
I am using spring boot application with spring security. In my application I am using token based authorization.
Can you help me with this
I tried to fix it.But I couldn't find proper answer.

Related

Laravel Sanctum vs Passport [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
What are the differences between these 2? And which one is better for a simple VueJS app?
I've read their documents a few times but still confused.
Thank you very much.
Passport provides a full OAuth2 server implementation for your Laravel application in a matter of minutes. It is therefore necessary to have a brief knowledge of OAuth2.
Sanctum it is a simple package to issue API tokens to your users without the complication of OAuth. Sanctum uses Laravel's built-in cookie based session authentication services.
In a small application use Sanctum. it's simple and easy.

How do I find out what project is connected to Youtube data API service based on the project number? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 4 years ago.
Improve this question
I got an email stating that my project(s) hasn't accessed or used the YouTube Data API Service in the last 60 days and if it's inactive for another 30 days they'll disable access to the API. The project is referenced only by a number, and I have no idea what the "project" is or how to find it based on that number.
I have had the same email. I eventually found the Project by stumbling my way to this part of my Google Account, so you should find the Project in your Google Account using the same link:
https://console.developers.google.com/apis/
In my case the Project relates to the Wordpress Plugin "YouTube Lyte":
https://wordpress.org/plugins/wp-youtube-lyte/
I installed this Plugin on a Wordpress self-hosted blog some years ago.
I have no idea why my Google Developer Console identifies me (ie. my Google Account) as the "Owner" of the "YouTube Lyte" api.
I will see if I can get any clarification via the YouTube Lyte Plugin Support Page:
https://wordpress.org/support/plugin/wp-youtube-lyte
This is not my highest priority at the moment so someone else might get there first - and maybe kindly post an answer here?
Liz

My application uses Pinterest api not working today? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
My application is not working today
it's an error message: The remote server returned an error: (401) Unauthorized.
and I try to use link : https://developers.pinterest.com/tools/api-explorer/
to debug.
but Response error:Something went wrong, are your fields correct?
Is Pinterest blocking this feature?
I have the same problem. It seems like Pinterest is banning all tokens generated outside an App (using the access token generator tool).
Please refer to Token Debugger Tool and see if your token is banned.
I think they are pushing us to create an App in fufilment of new privacy policies.

Questions about Laravel API-Centric app [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am new to APIs. I want to make an API-centric Laravel web app and an Android app. They will use private API.
I am not sure how to make the user auth for the API. I have read many articles about JWT and many more about OAuth2 but I am still not sure which one to use and how to actually make it.
I recommend that you read through this very digestable book - https://apisyouwonthate.com/. It helps with the theory and the implementation of an API in Laravel. Although the code is specifically for Laravel 4, virtually everything in the book is still helpful.
Starting in Laravel 5.2, the framework has been providing support for token authentication and web form authentication right out of the box. https://www.laravel.com/docs/5.3/passport

Call web api method [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can we call web api with Https protocol instead of Http ?? If yes, then how can we ?
I have tried with Https; But it is not calling my web api method.
Any help on this appreaciated.
Yes. [1]
The steps are rather involved and I'm not sure if all can be summarised here.
Disclaimer: This answer most likely suffers from Your answer is in another castle: when is an answer not an answer?
All is revealed in the link below but essentially:
Create a certificate for the purpose of SSL
Add a HTTPS binding to IIS
Update URLs to use the new HTTPS address
More
[1] Working with SSL in Web API

Resources