{"action":"created","issue":{"url":"https://api.github.com/repos/Clancey/simple_auth/issues/27","repository_url":"https://api.github.com/repos/Clancey/simple_auth","labels_url":"https://api.github.com/repos/Clancey/simple_auth/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Clancey/simple_auth/issues/27/comments","events_url":"https://api.github.com/repos/Clancey/simple_auth/issues/27/events","html_url":"https://github.com/Clancey/simple_auth/issues/27","id":366394221,"node_id":"MDU6SXNzdWUzNjYzOTQyMjE=","number":27,"title":"Azure AD example broken","user":{"login":"abjorck","id":569069,"node_id":"MDQ6VXNlcjU2OTA2OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/569069?v=4","gravatar_id":"","url":"https://api.github.com/users/abjorck","html_url":"https://github.com/abjorck","followers_url":"https://api.github.com/users/abjorck/followers","following_url":"https://api.github.com/users/abjorck/following{/other_user}","gists_url":"https://api.github.com/users/abjorck/gists{/gist_id}","starred_url":"https://api.github.com/users/abjorck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abjorck/subscriptions","organizations_url":"https://api.github.com/users/abjorck/orgs","repos_url":"https://api.github.com/users/abjorck/repos","events_url":"https://api.github.com/users/abjorck/events{/privacy}","received_events_url":"https://api.github.com/users/abjorck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-03T15:22:01Z","updated_at":"2018-10-04T04:58:20Z","closed_at":"2018-10-04T04:58:20Z","author_association":"NONE","body":"Nothing happens when clicking login for azure, except logging of the following\r\n\r\n```\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): Failed to handle method call\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): java.lang.IllegalArgumentException: Unsupported value: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:199)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat clancey.simpleauth.simpleauthflutter.SimpleAuthFlutterPlugin.onMethodCall(SimpleAuthFlutterPlugin.java:63)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat android.os.MessageQueue.nativePollOnce(Native Method)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat android.os.MessageQueue.next(MessageQueue.java:325)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat android.os.Looper.loop(Looper.java:142)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat android.app.ActivityThread.main(ActivityThread.java:6541)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat java.lang.reflect.Method.invoke(Native Method)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)\r\nE/MethodChannel#simple_auth_flutter/showAuthenticator( 6889): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)\r\n\r\n\r\n2018-10-03 17:26:45.119 7605-7605/com.example.simpleauthflutterexample E/MethodChannel#simple_auth_flutter/showAuthenticator: Failed to handle method call\r\n    java.lang.IllegalArgumentException: Unsupported value: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference\r\n        at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293)\r\n        at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)\r\n        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:199)\r\n        at clancey.simpleauth.simpleauthflutter.SimpleAuthFlutterPlugin.onMethodCall(SimpleAuthFlutterPlugin.java:63)\r\n        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)\r\n        at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)\r\n        at android.os.MessageQueue.nativePollOnce(Native Method)\r\n        at android.os.MessageQueue.next(MessageQueue.java:325)\r\n        at android.os.Looper.loop(Looper.java:142)\r\n        at android.app.ActivityThread.main(ActivityThread.java:6541)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)\r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)\r\n2018-10-03 17:26:45.133 1390-1390/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 7753728\r\n2018-10-03 17:26:45.139 7605-7644/com.example.simpleauthflutterexample E/flutter: [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Unhandled exception:\r\n    PlatformException(error, Unsupported value: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference, null)\r\n    #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:551:7)\r\n    #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:279:18)\r\n    <asynchronous suspension>\r\n    #2      SimpleAuthFlutter.showAuthenticator (package:simple_auth_flutter/simple_auth_flutter.dart:27:33)\r\n    <asynchronous suspension>\r\n    #3      OAuthApi.performAuthenticate (package:simple_auth/src/oauth/oauthApi.dart:86:30)\r\n    <asynchronous suspension>\r\n    #4      AuthenticatedApi.authenticate (package:simple_auth/src/api/authenticatedApi.dart:20:54)\r\n    <asynchronous suspension>\r\n    #5      _MyHomePageState.login (file:///Users/bjorck/Projects/safe/simple_auth/simple_auth_flutter_example/lib/main.dart:394:31)\r\n    <asynchronous suspension>\r\n    #6      _MyHomePageState.build.<anonymous closure> (file:///Users/bjorck/Projects/safe/simple_auth/simple_auth_flutter_example/lib/main.dart:133:15)\r\n    #7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:503:14)\r\n    #8      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:558:30)\r\n    #9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)\r\n    #10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)\r\n    #11     TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7)\r\n    #12     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)\r\n    #13     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20)\r\n    #14     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)\r\n    #15     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)\r\n    #16     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)\r\n    #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)\r\n    #18     _invoke1 (dart:ui/hooks.dart:142:13)\r\n    #19     _dispatchPointerDataPacket (dart:ui/hooks.dart:99:5)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Clancey/simple_auth/issues/comments/426885594","html_url":"https://github.com/Clancey/simple_auth/issues/27#issuecomment-426885594","issue_url":"https://api.github.com/repos/Clancey/simple_auth/issues/27","id":426885594,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjg4NTU5NA==","user":{"login":"Clancey","id":256046,"node_id":"MDQ6VXNlcjI1NjA0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/256046?v=4","gravatar_id":"","url":"https://api.github.com/users/Clancey","html_url":"https://github.com/Clancey","followers_url":"https://api.github.com/users/Clancey/followers","following_url":"https://api.github.com/users/Clancey/following{/other_user}","gists_url":"https://api.github.com/users/Clancey/gists{/gist_id}","starred_url":"https://api.github.com/users/Clancey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clancey/subscriptions","organizations_url":"https://api.github.com/users/Clancey/orgs","repos_url":"https://api.github.com/users/Clancey/repos","events_url":"https://api.github.com/users/Clancey/events{/privacy}","received_events_url":"https://api.github.com/users/Clancey/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T04:58:20Z","updated_at":"2018-10-04T04:58:20Z","author_association":"OWNER","body":"So I need to handle this better. This is caused by a null redirect url. You need something in the redirect or this error happens."}}
{"actor":{"display_login":"Clancey"}}