Skip to content
Snippets Groups Projects
invoker_service_get_token.py 505 B
Newer Older
JorgeEcheva26's avatar
JorgeEcheva26 committed
from opencapif_sdk import service_discoverer
JorgeEcheva26's avatar
JorgeEcheva26 committed
def showcase_access_token_retrieval_from_capif():
Jorge Echevarria Uribarri's avatar
Jorge Echevarria Uribarri committed
    service_discoverer = service_discoverer(config_file=utilities.get_config_file())
JorgeEcheva26's avatar
JorgeEcheva26 committed
    service_discoverer.get_tokens()
JorgeEcheva26's avatar
JorgeEcheva26 committed

JorgeEcheva26's avatar
JorgeEcheva26 committed

if __name__ == "__main__":
Jorge Echevarria Uribarri's avatar
Jorge Echevarria Uribarri committed
    # The following code assumes that you have already registered the net app to CAPIF.
JorgeEcheva26's avatar
JorgeEcheva26 committed
    # showcase_service_discovery()
    # showcase_retrieve_endpoint_url_from_tsn()
JorgeEcheva26's avatar
JorgeEcheva26 committed
    showcase_access_token_retrieval_from_capif()
    print("COMPLETED")