Profile>(
                            this, MicrosoftUserProfile::class.java, null) {
                        override fun onResponse(userProfile: MicrosoftUserProfile) {
                            var name = userProfile.fullName
                            if (TextUtils.isEmpty(name)) {
                                if (!TextUtils.isEmpty(userProfile.firstName)) {
                                    name = userProfile.firstName + " "
                                }
                                if (!TextUtils.isEmpty(userProfile.surName)) {
                                    if (TextUtils.isEmpty(name)) {
                                        name = userProfile.surName
                                    } else {
                                        name += userProfile.surName
                                    }
                                }
                            }
                            userInfoCallback?.setSocialUserInfo(userProfile.email, name)
                        }
                    })
        }
    }

    override fun getUser(callback: SocialProvider.Callback<SocialMember>?) {
        throw UnsupportedOperationException("Not implemented / Not supported")
    }

    override fun isLoggedIn(): Boolean {
        throw UnsupportedOperationException("Not implemented / Not supported")
    }

    companion object {
        private const val MS_GRAPH_URL = "https://graph.microsoft.com/v1.0/me"
    }
}


apiVersion: apps/v1
kind: Deployment
metadata:
  name: event-subscriber
  labels:
    app: event-subscriber
    demo: dapr-apim
spec:
  selector:
    matchLabels:
      app: event-subscriber
  template:
    metadata:
      labels:
        app: event-subscriber
        demo: dapr-apim
      annotations:
        dapr.io/enabled: "true"
        dapr.io/id: "event-subscriber"
        dapr.io/port: "8080"
        dapr.io/config: "tracing"
        dapr.io/log-as-json: "true"
        dapr.io/log-level: "debug"
    spec:
      containers:
      - name: service
        image: mchmarny/http