生成laravel护照访问令牌并刷新令牌,而无需http请求

时间:2019-03-18 15:14:05

标签: laravel laravel-passport

我如何在没有http请求的情况下生成laravel护照访问令牌并刷新令牌。我想要这个结果而无需向/ oauth / token

发送请求
 "token_type": "Bearer",
"expires_in": 86400,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImQ2OGQ5ZGI0ZWRlOGQ4ZTgwN2UzZjgwMjQzMzJlOTA3YzY4MWE2OWI1NDMxZTZiZGMzZDk3NzM0NGIxZmM1ZmRlOTI4NTc0MzdkMzJlNjJiIn0.eyJhdWQiOiIyIiwianRpIjoiZDY4ZDlkYjRlZGU4ZDhlODA3ZTNmODAyNDMzMmU5MDdjNjgxYTY5YjU0MzFlNmJkYzNkOTc3MzQ0YjFmYzVmZGU5Mjg1NzQzN2QzMmU2MmIiLCJpYXQiOjE1NTI5MjE5NTYsIm5iZiI6MTU1MjkyMTk1NiwiZXhwIjoxNTUzMDA4MzU2LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.HHJpFmnq0bysTGojgPLQDyuiDXD6DL0yU05cN6V8-3YLP9--CunycGHqMs0Cl3WD98-wdGMJV06FdC3m_4TTQlsSU5Z4caH6wycYSlr0xu2Mp02DPPSSuXc4yoEOykSMkxST6-bMKVz5xSJleFJUyiVTralGo2wJbbsMpFWR3h3WvSP5CQo4m8tgr8btDxJLECZ9K40565xtUeJLkdPKaMWBaGztm_kVWoTbQCc-26WmCACQs2QpDoIvNcM2uo8JNTwwyfqKjnBXW_aRPRCeJmXjSWuaScM4JpjdE9Iyk-g-rPoy9-_ET0Qrj815mMZk2hzMdEwf0_W75oZfNI1-KPd6WN0eOVid2_Mo33sfNm-k7yxseNGZnzQtKa7AcGoNZrcR8TeEeKchmr68m65zcZvBHYnCjOY8imT7vp4wrqr5Qf4HfAY3Zb498z2H_PE76jC932KOOHeN8CaRa7m6xtNMVKlCGctekfdXq0ZbgWQxy20MsAi6H9vHLaBVxS773Y8Df3JHX2ZmDPqmqw7EwdXofsdD9CXLxeY6Kn1B3yqYelqkvSknTFOiVMtBW1tWcHsIMTIurEkRPAjLGAbVGJmcvl6EAKFB7lKCrxMvkGKUj82bqd6aM0moXCBkO0hmyxYh7-rJ7bQ2j0py7xx2de5o_cQgRt7hcOFbpk1uqRE",
"refresh_token": "def5020032edfa7f2484554538abfcc307b909f12397279b370ab700e7531015e613c2dfddb623985d5d9b998fd6216d1dd40b75f079af8746d8220562a0edd60232cb4bd1d6ed0792153dd29c26660f9a8893fc526e29880f9948da1fcde0ba59e0d8ea3f94d36da156a806b440f61c9e0b2324ad8af295f3c9ba0be6209f66774f49990001e5f70dbfd05c3a661bf559e5a92dd7fa7e48309a0a383f00b352cda6d92eb39a41428282e5571d1177e2df6e4683a4d439e4926d88ad7bed586a9fb4d9126ce71981f7db3b00258e4c8b22b706620def66b93237998d769b221ff0cc93dc5cbdcf894cbad031ffe53ced53369175476cfb44964a504f18eb6c1326b348044f79f545bed870b81f5624ae41605cda76bb2e791eb6bd9330201a2eeb015562fb212e9c7262e7efe5e400fe897e414874235d6317391f5f7c950c250798d1fcd0e70b0a5e9066f476254564d1b66bc63da6a233d682bdeadacacc316e",

0 个答案:

没有答案