mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 16:57:33 -04:00 
			
		
		
		
	Updates for access token with microsoft
This commit is contained in:
		
							parent
							
								
									48c20b35b8
								
							
						
					
					
						commit
						d53c36d3ef
					
				| @ -90,14 +90,15 @@ class ConnectedAccountController extends BaseController | ||||
| 
 | ||||
|     private function handleMicrosoftOauth($request) | ||||
|     { | ||||
|         nlog($request->all()); | ||||
|         $access_token = false; | ||||
|         $access_token = $request->has('access_token') ? $request->input('access_token') : $request->input('accessToken'); | ||||
| 
 | ||||
|         if (!$request->has('access_token')) { | ||||
|         if (!$access_token) { | ||||
|             return response()->json(['message' => 'No access_token parameter found!'], 400); | ||||
|         } | ||||
| 
 | ||||
|         $graph = new \Microsoft\Graph\Graph(); | ||||
|         $graph->setAccessToken($request->input('access_token')); | ||||
|         $graph->setAccessToken($access_token); | ||||
| 
 | ||||
|         $user = $graph->createRequest("GET", "/me") | ||||
|                       ->setReturnType(Model\User::class) | ||||
|  | ||||
| @ -727,7 +727,6 @@ class Invoice extends BaseModel | ||||
|             return Storage::disk(config('filesystems.default'))->{$type}($file_path); | ||||
|         } | ||||
| 
 | ||||
| 
 | ||||
|         try { | ||||
|             $file_exists = Storage::disk('public')->exists($file_path); | ||||
|         } catch (\Exception $e) { | ||||
|  | ||||
| @ -1,2 +1,3 @@ | ||||
| <iframe src="{{ $credit->pdf_file_path(null, 'url', true) }}" | ||||
|         style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe> | ||||
| <iframe src="{{ $credit->fullscreenPdfViewer($invitation) }}" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe> | ||||
| 
 | ||||
| <!-- <iframe src="{{ $credit->pdf_file_path(null, 'url', true) }}" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe> --> | ||||
|  | ||||
| @ -1,2 +1,3 @@ | ||||
| <iframe src="{{ $quote->pdf_file_path(null,'url',true) }}" | ||||
|         style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe> | ||||
| <iframe src="{{ $quote->fullscreenPdfViewer($invitation) }}" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe> | ||||
| 
 | ||||
| <!-- <iframe src="{{ $quote->pdf_file_path(null,'url',true) }}" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe> --> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user