19 questions
4
votes
3
answers
4k
views
Object of type Illuminate\Auth\AuthManager is not callable [closed]
As part of API development, I use Laravel 9 and use "php-open-source-saver/jwt-auth" package for authentication without tokens. The API works fine, but I get an error when I add the ...
0
votes
1
answer
780
views
JWT Token generated using firebase/php-jwt is showing as Invalid Token
I am using firebase/php-jwt for generating JWT Token using the following PHP Source Code
<?php
include '../vendor/autoload.php';
use Firebase\JWT\JWT;
use Firebase\JWT\Key;
$privateKey = <<&...
1
vote
1
answer
398
views
Epic on FHIR - PHP-JWT
I am trying to get the jwt token, but i am getting errors everytime with everything that i try. Below are th things that i have tried. I do get the jwt-token without the package but when i use the jwt....
1
vote
1
answer
925
views
Error: Cannot handle token prior to 2022-11-25T22:41:29+0530
my server timezone is London and we are in Indian standard Time, everything works fine, except when the jwt and refresh token both expires, I have a scenario where I have to generate a new refresh ...
1
vote
1
answer
489
views
Pre-scheduling Zoom meeting doesn't create meeting at the time which is supposed? How can I fix it?
The problem is that, Zoom creates meeting but not in the correct time as I am expecting it to be:
I have tried changing timezones in api.php as I have suspected that creates a problem, but seems like ...
0
votes
1
answer
538
views
Codeigniter 4 Rest API - 301 Moved Permanently
I have Codeigniter 4 web app that run REST API with firebase/php-jwt on Laragon 5.0.0210523 environment that run Apache-2.4.47, PHP-8.1.7, and MongoDB-4.0.28. I followed a tutorial and it works fine ...
0
votes
1
answer
1k
views
Invalid token and 'Failed to parse json string'
I am creating a REST API using CI4. I want to create a auth filter and ran into a problem.
When token is valid or not send, everything is fine.
Problem is when I change the content of token before ...
0
votes
0
answers
439
views
Nodejs Verify a JWT token generated by PHP JWT kit Error JsonWebTokenError: invalid signature
I am creating jwt token in my webserver with PHP jwt tool as below,
$key = 'key';
$allowInfinity=true;
//for mobile devices allow infinity
if($allowInfinity===false) {
$token =...
2
votes
1
answer
1k
views
firebase/php-jwt refresh token generation and revalidation
I am using the firebase/php-jwt library to authenticate users, I am successfully able to send the access-token, but how can I send a refresh token and create a way to revalidate the refresh token ...
2
votes
1
answer
1k
views
How to call a class from vendor folder when using a composer?
I am investigating jwt token examples from this link - https://github.com/firebase/php-jwt
So i run:
composer require firebase/php-jwt
And now i have new files and folders in my root directory of my ...
1
vote
2
answers
2k
views
Firebase auth with custom token from php
I have a PHP application and I am trying to generate a token to authenticate users so that they can access Firebase from the browser.
I have generated a private key from service account in Firebase ...
1
vote
0
answers
464
views
PHP JWT Expiry Issue
I am new to JWT so apologies in advance.
I am using php-jwt library.
Headers
include_once("includes/jwt/BeforeValidException.php");
include_once("includes/jwt/ExpiredException.php")...
2
votes
0
answers
324
views
PHP JWT - Returns Null After Sometime
I have tried to implement JWT into my code for authentication. And it seems to work fine for sometime, and then it fails and returns null. And I am unable to figure out what is returning the null.
JWT ...
3
votes
2
answers
21k
views
Unable to decode JWT tokens PHP
I tried to decode the given token with the code below. The key is supposed to be base64 encoded. However when I attempt to decode it tells me I have invalid signature. The token is generated from a ...
1
vote
0
answers
236
views
Angular php-jwt token cleared on page navigation
I'm having issues with my application, I used php-jwt JSON Web Token Authentication in my angular 9 apps and the token works fine when I'm not redirecting to successful page after login. when ...
4
votes
1
answer
2k
views
How to select valid keys from JWK key set for apple login token verification?
I am trying to validate apple identityToken using API. I am using the firebase/php-jwt library.
I have done the below code.
$access_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
$...
2
votes
1
answer
2k
views
JWT token generation for apple api in php
I am trying to generate JWT token for apple connect API (to get sales report) in php.
i tried this format (using firebase/php-jwt)
$Private_key = file_get_contents('AuthKey_XYZ.p8');
$Issuer_ID = '...
0
votes
1
answer
854
views
Decode firebase/php-jwt in Angular 6
I am using firebase/php-jwt in my Backend Api (Using Lumen) to serve Authentication Token.
and I am using Angular 6 in Frontend.
This is my result from backend after logged in : -
{
"message": "...
10
votes
1
answer
2k
views
How to populate `identifier` and `providers` in Firebase custom authentication?
I'm authenticating my users on my web service and then creating Firebase custom token via php-jwt:
// Requires: composer require firebase/php-jwt
use Firebase\JWT\JWT;
// Get your service account's ...